Reactivity issue with @ft.component, and ListView #6471
Unanswered
angelhdzmultimedia
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question
How to add a @ft.component decorated function to the ListView without reactivity issues?
If I use a ft.Text, it works.
If I use MessageWrapper component and its subcomponents, I get reactivity issues everywhere for example the theme button stops working, the task dropdown, etc.
AI says its because my component needed a key so it doesnt lose reference to the items for the ListView in the list comprehension/loop. So i added unique IDs hoping it would solve it (as it does when I work with Javascript and Vue reactive library).
Appreciate any tip, as I've been days trying to do this little project to test Flet and it's killing the joy of having Flutter in Python... :'(
Code sample
Error message
No response
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions