Issue: "On Page Load" Not Triggering When Navigating with Back Navigation Disabled

General Conversations

I've encountered a consistent issue when navigating to a page (e.g., HomePage) using "Navigate To" with "Allow Back Navigation" turned OFF:

When I navigate to the page, the On Page Load actions do not run

But if I enable back navigation, the On Page Load flow works as expected

I have also tried enabling "Skip On Page Load When Inactive", but that doesn't fix the issue

This causes problems when I rely on On Page Load to:

Call APIs

Load user data or dashboards

Reset page state

It appears that when "Allow Back Navigation" is OFF, FlutterFlow may be using pushReplacement(), which doesn't fully re-trigger the widget lifecycle โ€” and On Page Load is skipped entirely.



Is this the expected behavior with pushReplacement() (back nav OFF)?

And is there a clean way to ensure On Page Load always triggers, even when back navigation is disabled?


2
1 reply