-
Notifications
You must be signed in to change notification settings - Fork 30
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
Integration in Saga #41
Comments
@dbrrt Hello, it's possible to use it. It depends on what you want to do, you can dispatch Router methods from your sagas, or read the location state from the store. Let me know if I can help you further |
@danielr18 Thanks for the quick reply, I've tried to wrap my main App with |
Are you using the redux middleware? Here's v2 example: https://github.com/danielr18/connected-next-router/tree/v2/examples/basic |
Yes, but probably misconfigured. Will try again. Thanks for the link! EDIT: Quickly adapted from the example your shared. Here's how I'm updating the route in my sagas in my generators. Unfortunately I'm still having Server side rendering issues: |
Are you dispatching a navigation action on the server side? |
That was the issue, performing the dispatch on the client side only resolved the problem |
Thanks a lot @danielr18, this issue can be closed, I can try to make a PR with an example for Saga once I've got a moment. |
@dbrrt That would be great, thanks! |
Hello,
Is it possible to use this library in Redux Saga, if so how?
Thanks in advance.
The text was updated successfully, but these errors were encountered: