Open XionWCFM opened 1 month ago
Implement an adapter for next-app-router for the issue discussed in #59.
Related Issue : #59
Currently implemented to operate similarly to @use-funnel/browser. Used for history.state. context, history
useSearchParams in next.js requires suspense, you must wrap suspense when using useFunnel.
I tested locally whether the value was maintained through history.state even when refreshed.
I checked in the local environment whether the funnel steps were changed appropriately even when using the browser's back and forward functions.
Added test case for funnel.render.overlay.
I tested whether pages using useFunnel could be built without problems.
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
Description
Implement an adapter for next-app-router for the issue discussed in #59.
Related Issue : #59
Context
Currently implemented to operate similarly to @use-funnel/browser. Used for history.state. context, history
useSearchParams in next.js requires suspense, you must wrap suspense when using useFunnel.
How Has This Been Tested
I tested locally whether the value was maintained through history.state even when refreshed.
I checked in the local environment whether the funnel steps were changed appropriately even when using the browser's back and forward functions.
Added test case for funnel.render.overlay.
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