samiskin / redux-electron-store

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

application hangs on redux-electron-store #39

Closed hyalkaf closed 7 years ago

hyalkaf commented 7 years ago

Thank you for this library as it helps syncing electron windows to the store. I have successfully used this library but lately I was fixing linting errors in my app and when I tried to run the app again, it will hang on a line on electronRendererEnhancer.js

The line is: subscribeFuncs.callListeners();

It gets stuck there after dispatching a specific action. Some actions are working but once I dispatch that specific action, it will go through reducers normally and then go to electronRendererEnhancer and gets stuck there. I'm not sure why is this happening all of a sudden after it used to work. I used to have an older version and updated it to a new version but I tried to go back to the older version and still no luck. Changes that I made from when it was working to now are:

samiskin commented 7 years ago

I'm afraid I'd need more information in order to look into this. Could you try to figure out precisely what changed started the issue? And to be clear, there's no JavaScript error, it just seems to freeze indefinitely when executing subscribeFuncs.callListeners()?

hyalkaf commented 7 years ago

Just figured it out, nothing to do with redux-electron-store. There was a loop in my code that was running indefinitely after being called in componentWillReceiveProps. Sorry about this.

samiskin commented 7 years ago

No worries, I'm glad you figured it out 👍