How to share state (react)between electron's multiple windows?
问题 I am developing a desktop app with react for UI and electron. So, for now, I am fetching data from the server and saving it in the state using React's Context API to update the UI. I am keeping the state and the function to add, remove and update state in the renderer process and with IPC I am sharing the data between renderer process through main process (as it should be). But as the application is scaling I need a better approach. Something like a central state (if that's a thing). P.S. can