Support changing the query on FirebaseAnimatedList #6056
Unanswered
amervelic
asked this question in
Feature request
Replies: 1 comment
-
The problem is that FirebaseAnimatedList sometimes doesn't detect query changes properly and needs to be explicitly told to refresh its data.So try adding a Key ( for eg : Key _listKey = UniqueKey();) .When updating your query, generate a new key to force a rebuild , and lastly add the key to your FirebaseAnimated list . Without this, the widget sometimes doesn't detect query changes and continues showing old results. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
When the
query
passed toFirebaseAnimatedList
changes, the list keeps showing the results of the previous query instead.Adding a
didUpdateWidget
to detect that the query changed should fix this issue.Beta Was this translation helpful? Give feedback.
All reactions