App state updating on web test but not simulator

Actions & Logic

I have an object detail screen that gets it's data from an app state 'selectedObject'. On the details screen there is a custom component with a page parameter 'object' and the 'selectedObject' is based to this component. This component's contents change based on the status of the 'object'.

When the user presses a button within the component, It shows a bottom sheet (for confirmation). The confirmation on the bottom sheet triggers an API call to my database that changes the status of the 'object'. I then receive the updated 'object' back in the response. I update the 'selectedObject" app state with this new 'object' from the response. Based on this, the button in the custom component should update.

All of this works great when viewing it on the web test mode. However, in the simulator or the actual device, it doesn't seem that the app state is updating as the component is not changing. However, when I leave the details screen and go back, the component is correct.

Is there something different when updating on the app?

What have you tried so far?

I have the 'Rebuild Containing Page' selected when updating the app state.

Did you check FlutterFlow's Documentation for this topic?
Yes
3
2 replies