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

mutate_reactive doesn't work with data binding #4797

Closed
Banbury opened this issue Jul 24, 2024 · 5 comments
Closed

mutate_reactive doesn't work with data binding #4797

Banbury opened this issue Jul 24, 2024 · 5 comments

Comments

@Banbury
Copy link

Banbury commented Jul 24, 2024

Description

mutate_reactive doesn't execute watchers in components, that are connected via data binding. I am using a reactive list in the app. I have bound this list to another reactive list in a child component. When I execute self.mutate_reactive the watcher in the app is called, but the watcher in the child component is not.

Textual Diagnostics

Versions

Name Value
Textual 0.73.0
Rich 13.7.1

Python

Name Value
Version 3.10.10
Implementation CPython
Compiler MSC v.1929 64 bit (AMD64)
Executable d:\work\projects\python\aieditor.venv\Scripts\python.exe

Operating System

Name Value
System Windows
Release 10
Version 10.0.22621

Terminal

Name Value
Terminal Application vscode (1.91.1)
TERM Not set
COLORTERM truecolor
FORCE_COLOR Not set
NO_COLOR Not set

Rich Console options

Name Value
size width=151, height=8
legacy_windows False
min_width 1
max_width 151
is_terminal True
encoding utf-8
max_height 8
justify None
overflow None
no_wrap False
highlight None
markup None
height None
Copy link

We found the following entries in the FAQ which you may find helpful:

Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review.

This is an automated reply, generated by FAQtory

@willmcgugan
Copy link
Collaborator

Can you give us an MRE? https://label.dev/articles/minimal-reproducible-example/

@Banbury
Copy link
Author

Banbury commented Jul 24, 2024

Maybe on the weekend. But all that is needed is an app, a widget, two reactive lists and two watch functions.

@willmcgugan
Copy link
Collaborator

Assuming this is the same issue https://github.com/Textualize/textual/issues, it will be fixed next release.

Copy link

Don't forget to star the repository!

Follow @textualizeio for Textual updates.

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

No branches or pull requests

2 participants