klarna / electron-redux

Use redux in the main and browser processes in electron
MIT License
743 stars 94 forks source link

Redux for two window #279

Closed Ruslan27032000 closed 3 years ago

Ruslan27032000 commented 3 years ago

Hello. Sorry for asking, but I can't understand how to make and connect react between two windows. It just my first time, when I use Electron and it was so hard set-up webpack file for me, but after all I finally did it . I found your source, but I can't understand, how to divide my state and synchronize state between two windows. If someone has some code snippet or can do this, I will really appreciate it.

hardchor commented 3 years ago

Hey @Ruslan27032000! Take a look at our end-to-end tests for some good examples on how to set this up: https://github.com/klarna/electron-redux/tree/master/packages/electron-redux-e2e/src