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

Improve the Reactive Runtime #686

Open
jrmoulton opened this issue Nov 13, 2024 · 0 comments
Open

Improve the Reactive Runtime #686

jrmoulton opened this issue Nov 13, 2024 · 0 comments

Comments

@jrmoulton
Copy link
Collaborator

Ideally the reactive runtime would allow for signals to be both created and used from any thread.

Requirements

  • The main thread must never block
  • effects must run on the same thread they were created on (unless we remove this requirement and allow for methods on ViewId to be callable from other threads)
  • effects must see updates from all other threads (although maybe not necessarily all updates?)

Open questions

  • If there are multiple changes that happen at nearly the same time, do all observers need to see all computed states? and if so do they need to see them in order?

Dioxus has the generational-box crate which might be a good fit.
https://github.com/DioxusLabs/dioxus/tree/main/packages/generational-box

See also #534

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant