Still can't figure out how to run an action when navigating back using swipe

Actions & Logic

So OnPageLoad actions don't run when you use the "Navigate Back" action or swipe to navigate back to the previous page.

But it is common that you navigate to a page, make changes, and navigate back. But when you do, the last page shows outdated data.

In some cases you can use an app state variable to sync data across pages but it is not a viable solution for all cases. I have a lot of use cases like this and the simplest solution would be to somehow refresh/reload/rebuild the page when navigating back instead of trying to do gymnastics with app state for each page and use case.

Any idea how to do this? I'll even deal with custom code for this (i just try to avoid it because i am not versed enough in it and worry about maintaining it long term).

Thanks in advance.

What have you tried so far?

i even contacted support but didn't get anywhere.

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