You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using use-funnel, navigating to the Funnel page prevents the user from accessing any other page. Any attempt to navigate to a different route results in the user being redirected back to the Funnel page via router.replace. This issue makes it impossible for users to leave the Funnel page.
Expected behavior
After visiting the Funnel page, users should be able to navigate to other pages freely.
To Reproduce
Run a React project with use-funnel applied. codesandbox
Navigate to the Funnel page from the GNB (global navigation bar).
Attempt to navigate to another page using the GNB, and observe how the Funnel page uses router.replace to redirect the user back, making it impossible to leave the page.
Try using the browser’s back button, and notice that the user is still unable to leave the Funnel page as the same redirection occurs.
Possible Solution
Reevaluate the conditions under which the useFunnel replace functionality is triggered.
Add appropriate checks to ensure that router.replace is only called when necessary.
Clearly define the termination conditions for the Funnel process and prevent unnecessary redirects after those conditions are met.
etc.
No response
The text was updated successfully, but these errors were encountered:
Package Scope
@use-funnel/react-router-dom
Bug description
When using use-funnel, navigating to the Funnel page prevents the user from accessing any other page. Any attempt to navigate to a different route results in the user being redirected back to the Funnel page via router.replace. This issue makes it impossible for users to leave the Funnel page.
Expected behavior
To Reproduce
Possible Solution
etc.
No response
The text was updated successfully, but these errors were encountered: