-
Notifications
You must be signed in to change notification settings - Fork 94
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
Add multiple redux stores support #310
Comments
Hi, named stores could become a thing in v2, but we don't plan to add any support for them in v1 anymore |
Perfect! |
Is it still not a thing? Could you please share some info about this feature request? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
The
electron-redux
has really easy-to-use API that helps a lot when working on electron applications. However, it has some limits in advanced usage. Specifically, support of multiple redux stores.In most cases, this wouldn't be an issue at all, however, my team faced it when trying to apply microfrontend approach to electron app.
In this case we create multiple store instances and, of course, use
electron-redux
middleware. Since the module sends all the actions through single channel, redux store gets mixed unpredictably. Also,global.getReduxState
function doesn't work as expected.Describe the solution you'd like
So I would like to have an opportunity to work with different instances of the store.
Ideally, it shouldn't break current API since it is an advanced feature. I was thinking about three ways of realisation:
arguments
to handle both standard and advanced usage:Describe alternatives you've considered
I already used myself the first approach in my fork since it's the easiest to implement.
I also understand that for most of the use cases it makes no sense to implement this logic so it's fine for me to keep a fork for this specific case only.
The text was updated successfully, but these errors were encountered: