electron-redux
electron-redux copied to clipboard
Adding other proxy middlewares
See https://github.com/tshaddix/react-chrome-redux/issues/163 for a bit of context (from react-chrome-redux
).
The main limitation with react-chrome-redux
is the requirement to separate local actions from background/aliased actions.
electron-redux
seems like it would be easier to morph to fit my needs (and, I also need an Electron proxy store, so that's another benefit). electron-redux
seems to be nicely architected to allow for the introduction of other middleware(s) to handle other environments like Chrome. The concept of a proxied store is obviously one that many people feel is useful, and I wonder if a more generic module could be created that includes middleware providers for Chrome, Electron, and potentially other environments as well.
I'm likely going to mimic electron-redux
's code to create a Chrome store proxy à-la react-chrome-redux
, but with the ability to separate local and aliased actions.
For now I could just create a separate module that mimics electron-redux
's API, and it would provide forwardToRenderer
and forwardToMain
alternatives. I'm hoping that only replacing those two functions would be the only changes needed to support a proxy store in Chrome extensions.
So I suppose the question would be if there's the possibility of eventually moving to a more generic module (e.g. redux-proxy-store
) that could support any number of middleware(s).
Thanks for the great work on electron-redux
.