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

Ignore write while rendering warning in memo lazy recompute #3647

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

ealmloff
Copy link
Member

Memos lazily recompute if they are read before async tasks are run in a component. Writing to the memos internal signal while rendering will cause the possible infinite rerender warning, but it is fine in this case because the write only happens conditionally

@ealmloff ealmloff added the signals Related to the signals crate label Jan 25, 2025
@ealmloff ealmloff requested a review from a team as a code owner January 25, 2025 14:52
@jkelleyrtp jkelleyrtp merged commit c850183 into DioxusLabs:main Jan 27, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
signals Related to the signals crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants