samiskin / redux-electron-store

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

Cannot read property 'postDispatchCallback' of undefined #7

Closed davej closed 8 years ago

davej commented 8 years ago

Did the following in my main process using redux-electron-store@0.3.1 and electron@0.36.7.

const electronEnhancer = require('redux-electron-store').electronEnhancer;
electronEnhancer();

And received the following error.

screen shot 2016-02-04 at 11 57 57
davej commented 8 years ago

Fixed this by passing in an empty object literal:

electronEnhancer({});

It should probably be reflected in the docs or fixed in the code though.

samiskin commented 8 years ago

It should now work as electronEnhancer() in v0.3.2, thanks for the heads up.