Create sub-windows with the same JavaScript context #11643
-
Hello 👋, I am coming from Electron where I made heavy use of What is your trick to create multi-window applications that have a common state? Shall I manage all state in Rust and tell the individual windows about changes? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Closely related to: #9423 |
Beta Was this translation helpful? Give feedback.
-
Just for reference, I think this is more fitting #4710 / tauri-apps/wry#649
That's typically the first thing we recommend, yes. We also have a |
Beta Was this translation helpful? Give feedback.
-
Hey, im facing an similar problem rn. How did you end up working this out @raphaelmenges ? |
Beta Was this translation helpful? Give feedback.
Just for reference, I think this is more fitting #4710 / tauri-apps/wry#649
That's typically the first thing we recommend, yes. We also have a
store
plugin if you don't want to use Rust (it uses rust internally) and want that state to be persisted on disk.There are also session-/localstorage based solutions i think, the specifics depend on your framework. If you search for a solution to share state across Browser Tabs for your framework you should hopefully find something.