samiskin / redux-electron-store

⎋ A redux store enhancer that allows automatic synchronization between electron processes
MIT License
375 stars 32 forks source link

Restores default dispatch return value #25

Closed jakereps closed 8 years ago

jakereps commented 8 years ago

Fixes #24

Tested both Main and Renderer side using a console.log() on the dispatch call.

console.log(store.dispatch({ type: 'DO_NOTHING' }));

Each call successfully resulted in the following outputs:

Renderer:

Object {type: "DO_NOTHING", source: "window 1"}

Main (electronBrowserEnhancer):

...
 { type: 'DO_NOTHING', source: 'main_process' }
...
samiskin commented 8 years ago

Could you make sure this also works on the Main process? (electronBrowserEnhancer)

samiskin commented 8 years ago

Also could you give a brief description of what you did to test this? Sorry I don't have unit tests 😞

jakereps commented 8 years ago

@samiskin, no problem, should be good now! Tested both the same way to make sure it was working correctly.