Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(next-app-router) implement an adapter for next-app-router #75

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

XionWCFM
Copy link
Contributor

@XionWCFM XionWCFM commented Oct 7, 2024

Description

Implement an adapter for next-app-router for the issue discussed in #59.

Related Issue : #59

Context

  1. Currently implemented to operate similarly to @use-funnel/browser. Used for history.state. context, history

  2. useSearchParams in next.js requires suspense, you must wrap suspense when using useFunnel.

How Has This Been Tested

  1. I tested locally whether the value was maintained through history.state even when refreshed.

  2. I checked in the local environment whether the funnel steps were changed appropriately even when using the browser's back and forward functions.

  3. Added test case for funnel.render.overlay.

  4. I tested whether pages using useFunnel could be built without problems.

Further Comments

I look forward to app router users being able to use use-funnel too!

If there is anything else that needs correction, please let me know at any time.

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant