Pop Until

The Pop Until action allows you to navigate backwards in the navigation stack until a specified route is reached. This is useful for returning to a particular page regardless of how deep the current navigation stack is.

Use Cases

  • Returning to the home screen or a main dashboard from several layers deep.

  • Closing multiple intermediate pages in a single action.

  • Resetting navigation to a known state.

Properties

Property
Description

routeNameToPopUntil

(Required) The name of the route to pop back to. The navigation stack will be popped until this route is found and displayed.

Default Behavior

  • The navigation stack is popped repeatedly until the specified route is at the top.

  • If the route is not found in the stack, the behavior depends on the platform or framework (usually nothing happens).

How to Use

  1. Attach the action to a widget event (e.g., button click).

  2. Select Pop Until from the action list.

  3. Provide the exact name of the route you want to pop back to.

Last updated