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

Create global BatchRouter like you can import Router from "next/router" #5

Open
dongyeop-youha opened this issue Nov 9, 2022 · 0 comments

Comments

@dongyeop-youha
Copy link
Contributor

It will allow query change in situations where you can't use hooks. For example, when using redux saga, where it's outside of components.

It's also needed for #4 because #4 makes useBatchRouter rerender the component when URL is changed. For a component that only changes the URL and not display its state, global BatchRouter is needed for optimization.

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

No branches or pull requests

1 participant