-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Replacing 'routerReducer' as an injectable token rather than static text #410
Comments
Seems reasonable to me. I would suggest adding a |
Cool, so the end result will be something like this
|
Yep. What about |
This catched me by surprise. I used another name for the router state key and time traveling didn't worked on my first try. At least the setup code on the docs makes mention it in the |
@edmundo096 - Thanks for your post! This was driving me crazy trying to debug why time-traveling wasn't working! I tried a lot of things, and did a lot of searching for fixes until I found your post. I renamed the property to I hope this can be fixed so that specific naming of the property isn't required, or at least update the documentation. I can help if needed. |
I'm submitting a...
What is the current behavior?
Currently in router_store_module.ts routerReducer is a static text key.
Expected behavior:
Allow for the key name to be injected via a provider and token but defaulting to 'routerReducer' of not provided
Minimal reproduction of the problem with instructions:
Version of affected browser(s),operating system(s), npm, node and ngrx:
Other information:
Happy to put together a PR if approved.
The text was updated successfully, but these errors were encountered: