Skip to main content
Use this API to close all pages in the page stack and open a new page. This is useful for resetting the navigation state.

Parameters

Code Example

Use Cases

  • Reset app state after logout
  • Return to home after completing a flow
  • Clear navigation history

my.redirectTo

Replace current page

my.switchTab

Navigate to tab page