redux-electron-store
redux-electron-store copied to clipboard
Actions are only synced in development prior to refreshing renderer window
After refreshing my primary renderer
window I don't see actions across windows/the main process.
A secondary issue I'm seeing is that before an initial refresh, actions are sent across with the TYPE
that I specify but with a payload specified by redux-electron-store
which looks like:
payload: {
deleted: {},
updated: myReducerContentsArray,
}
This payload gets passed to my sagas
and immediately throws errors as the payload is not what the saga
expects.
Any thoughts on either of these issues?
Hmm, you could potentially wrap the saga enhancer to have it ignore payloads with this shape or also wrap this enhancer with one that adds tags to the actions it emits and have saga ignore those
You could also try electron-redux which is similar to this library but I believe it dispatches the original action to all stores