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

Add examples about why writing to a signal during rendering is an issue to the warning message #3027

Open
DioxusGrow opened this issue Oct 2, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation signals Related to the signals crate

Comments

@DioxusGrow
Copy link

Add a section about the Writing to signals during a render error
Especially with examples of what happens when filling out forms. It is not clear in which cases the render event occurs and why it can lead to an infinite loop. Examples in the console are not sufficient for a clear understanding of the error.

@ealmloff
Copy link
Member

ealmloff commented Oct 2, 2024

The writing to signals during a render error is missing examples. You might be seeing examples from the write and read in the same scope error which is the more general version of the error. There is nothing specific to forms in this error, so the examples that are added will probably not contain forms

This is briefly mentioned in the new documentation, but more in depth examples would be useful in the error message itself

@ealmloff ealmloff transferred this issue from DioxusLabs/docsite Oct 2, 2024
@ealmloff ealmloff changed the title Add info about an error "Writing to signals during a render" Add examples about why writing to a signal during rendering is an issue to the warning message Oct 2, 2024
@ealmloff ealmloff added documentation Improvements or additions to documentation signals Related to the signals crate labels Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation signals Related to the signals crate
Projects
None yet
Development

No branches or pull requests

2 participants