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 peek() example #3375

Merged
merged 1 commit into from
Dec 17, 2024
Merged

fix peek() example #3375

merged 1 commit into from
Dec 17, 2024

Conversation

spookyvision
Copy link
Contributor

this PR aligns what the code snippet does with what the comment says it should do (peek and log the event source, not the count value). It also ensures count += 1 is done for both buttons, because otherwise only the double button causes a log message.

@jkelleyrtp
Copy link
Member

Good catch, thank you!

@jkelleyrtp jkelleyrtp merged commit 0596e53 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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants