-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
Why list not updating? #401
Comments
You're not listening to the ValueNotifier Use useValueListenable(list); |
Sorry, I have edited my post to make it clearer. I'm using useState in Page A. |
My answer doesn't change. Use useValueListenable in EditScreen :) |
Error after useValueListenable is added,
Am I added it in the right place? |
fixed.
|
I have the same questions, useValueListenable is still not working for me when using here is the code
|
@soxft I had the same problem, and your solution worked for me as well. Kudos! |
In page A, I'm calling an API to get list data from server , then add it into list.
Page A code
When Button is pressed, pass the list to EditScreen.
In EditScreen, there is a floatingActionButton for user to add vehicleItems. Once added, the item should be added into the list, and Listview should be refreshed.
However, the listView remains unchanged unless I hot reload it. How to fix it?
The text was updated successfully, but these errors were encountered: