-
Notifications
You must be signed in to change notification settings - Fork 20
RouterStoreModule registers router listeners for every bootstrapped component #46
Comments
@robwormald Any thoughts on this? |
There will be a new version of this lib released soon that fixes this issue.
…On Mar 21, 2017 7:06 AM, "Christoph Krautz" ***@***.***> wrote:
@robwormald <https://github.com/robwormald> Any thoughts on this?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#46 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACk47mRGhrquI1_0G0AuQpJybo4gtAyks5rn71cgaJpZM4MYE04>
.
|
Thanks for the update @brandonroberts |
Let me know if I can help. |
@brandonroberts Is the code for this already in some branch that I could have a look at? Can I help with the release of the new version? |
I could be wrong but I think this repo has the future router-store. |
@chrissena Can anyone please confirm this? |
@dojchek there is a new version coming but it will be the same project. There will also be some breaking changes but the issue in question will be fixed in the new version. We just had ng-conf this past week but the new version will be released soon. |
@brandonroberts Thanks for the valuable info! This is awesome news 👍 |
We are using ngrx in a setup where an app consists of multiple components:
RouterStoreModule.connectRouter() registers an APP_BOOTSTRAP_LISTENER that is supposed to register a bunch of router/store listeners during the bootstrap process. However, it registers these listeners every single time a component is bootstrapped.
Looking at how the router handles the bootstrap process one can see that it contains a little if to ensure that only initializes things once:
The router store should just do the same.
Current NPM config:
The text was updated successfully, but these errors were encountered: