-
Notifications
You must be signed in to change notification settings - Fork 815
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
Computed methods aren't called from mutate_reactive #4807
Comments
From a quick glance, it looks like you're not actually creating a reactive here - try changing count: reactive(0) |
@Banbury Tom is correct. If you make this change, then the compute method is called: count = reactive(0) |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
Textual is a great framework. But reactives and data binding are confusing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Computed methods are not called if a reactive is updated with mutate_reactive.
Example:
Place a breakpoint in
compute_count
and run the app. Press the button. The execution doesn't stop at the breakpoint.The text was updated successfully, but these errors were encountered: