I wanted to reach out there to the ff community and see if anyone ran into anything similar to what I'm experiencing. I've got a home screen on my app that sows upcoming reservations. The way it achieves this is running a query on the page load, and then referencing them in a column. Originally I had things in a list view for a firebase called but changed that because I wanted to both get a count of items returned and the actual items without having to make two DB calls..... anyway, this happens on the page load. On this reservation screen the user can remove the reservation if they choose so. If they do the system will prompt to confirm and then remove it the item from firestore. It's supposed to then update the app state and do a page reload followed by a confirmation message. What I'm noticing is that the action completes, and the confirmation message is received but the page does not refresh. Instead, the only way to see the change on the screen is to navigate away and come back.
Issues with update app state / page reload
Widgets & Design
The only way I've been able to get this to sort of work but seems kind of janky but it's to do a navigate to the home screen again and replace the routing. That seems to properly trigger the reload. I'm wondering if there is a better approach to accomplishing it.
Yes
1
8 replies