redux-electron-store icon indicating copy to clipboard operation
redux-electron-store copied to clipboard

Actions are only synced in development prior to refreshing renderer window

Open Nantris opened this issue 6 years ago • 1 comments

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?

Nantris avatar Jan 16 '19 21:01 Nantris

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

samiskin avatar Feb 05 '19 17:02 samiskin