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

Fix memos in children; introduce isomorphic spawn #2029

Merged
merged 4 commits into from Mar 12, 2024

Conversation

ealmloff
Copy link
Member

@ealmloff ealmloff commented Mar 8, 2024

This PR cleans up the task code a bit and introduces a new type of task that runs on the client and during suspense, but does not block suspense. This is useful for two different kinds of futures:

  • Synchronous responding futures like memo
  • Server functions that start on the server, but don't block suspense

Closes #2059

@ealmloff ealmloff added bug Something isn't working enhancement New feature or request core relating to the core implementation of the virtualdom hooks Changes to built-in hook package labels Mar 8, 2024
@jkelleyrtp
Copy link
Member

Looks good, cleaner. Can we add a simplified test to catch the memo thing?

@ealmloff ealmloff marked this pull request as ready for review March 11, 2024 20:34
@jkelleyrtp jkelleyrtp merged commit b35f74e into DioxusLabs:main Mar 12, 2024
9 checks passed
@ealmloff ealmloff deleted the isomorphic-spawn branch March 12, 2024 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core relating to the core implementation of the virtualdom enhancement New feature or request hooks Changes to built-in hook package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MappedSignal example crashes on pop. General MappedSignal weirdness
2 participants