How can I enable bi-directional communication between a new window, and the main window? #3795
Unanswered
JacobMillward
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You can create a pair of async channels with |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to create a setup where a desktop app opens the settings menu in a new window. I have it working and sending updates back by passing a
Rc<dyn Fn(SettingsUpdate)>
in the initial props. I would also like for the main window to send the mutated or changed settings forward to the settings window after it already exists.How can I do this?
Edit:
For future readers with the same issue, my initial implementation was based on the popup example in the repo. https://github.com/DioxusLabs/dioxus/blob/main/examples/popup.rs
Beta Was this translation helpful? Give feedback.
All reactions