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 second example in the read write same scope warning #3374

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

ealmloff
Copy link
Member

The second example in the help section for reading and writing the same signal in a reactive scope contains the line count.write(count()); which sets the signal to itself and doesn't make sense for any real app. This PR just sets the signal to a constant instead

@ealmloff ealmloff added documentation Improvements or additions to documentation signals Related to the signals crate labels Dec 17, 2024
@jkelleyrtp jkelleyrtp merged commit df71924 into DioxusLabs:main Dec 17, 2024
15 of 17 checks passed
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

Successfully merging this pull request may close these issues.

2 participants