Skip to content

Guidance on hooking lazily loaded actions+reducer into existing store #654

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

Closed
garborg opened this issue Aug 29, 2015 · 3 comments
Closed

Comments

@garborg
Copy link

garborg commented Aug 29, 2015

It may be out of the scope of the docs, but I haven't found any inspiration in the various middleware/scaffolding/example repos, either.

In my case, I've just switched react-router config to lazily-load sub-apps via require.ensure, and I'm trying to figure out how to bundle the sub-app's actions and reducers with the lazily loaded chunks rather than with the shared bundle.

@timdorr
Copy link
Member

timdorr commented Aug 30, 2015

I'd keep an eye on #625. That will enable lazy/progressive loading of reducers.

@garborg
Copy link
Author

garborg commented Aug 30, 2015

Thanks, @timdorr. I subscribed to #625 -- feel free to close this if it seems redundant.

@gaearon
Copy link
Contributor

gaearon commented Sep 1, 2015

@garborg In the meantime feel free to use store.replaceReducer().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants