Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose public methods for manipulating the global runtime #1441

Merged
merged 4 commits into from
Sep 16, 2023

Conversation

ealmloff
Copy link
Member

@ealmloff ealmloff commented Sep 8, 2023

Exposes a few new functions to manipulate the global runtime of Dioxus. This fixes dynamic linking of components as a dynlib. When a dynlib is linked, the global scope list in the dynlib is different from the main application you are running the VirtualDom in which breaks the context API. With this PR, you can pass the runtime from the main application to the dynlib and run override_runtime to set the dynlib runtime to be the same as the main application.

@ealmloff ealmloff added the core relating to the core implementation of the virtualdom label Sep 8, 2023
@jkelleyrtp
Copy link
Member

I feel like this should be handled automatically. I spun out an issue for us to circle back to - but if tokio has this solved then we should also have it solved.

@jkelleyrtp jkelleyrtp merged commit 13f10fe into DioxusLabs:master Sep 16, 2023
10 checks passed
@ealmloff ealmloff deleted the fix-uplink branch September 16, 2023 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core relating to the core implementation of the virtualdom
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants