How to share the same store across multiple electron windows? #1961
-
|
I am making an electron app and I have multiple pinia stores defined. However when a new electron window is opened it always creates a new store because the whole app is bootstrapped anew. Each window will instantiate its own store and each window is a separate process. The way a I open a new window is by using Vue router and giving the window url as Is there some easy way to share the same store across multiple electron windows? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Facing the same problem rn |
Beta Was this translation helpful? Give feedback.
-
|
We had the same struggle with our Electron app and finally decided to build a plugin to keep stores in sync between processes without the IPC headache. Feel free to give it a spin and let us know what you think! Hope it helps! |
Beta Was this translation helpful? Give feedback.
We had the same struggle with our Electron app and finally decided to build a plugin to keep stores in sync between processes without the IPC headache. Feel free to give it a spin and let us know what you think!
Hope it helps!