Function navigate

  • Initiates a navigation to the specified URL without reloading the page and notifies the application via the popstate event.

    Parameters

    • path: string | URL

      The path to navigate to. It can be either an absolute URL or a string path relative to the RouterOptions.baseURL.

    Returns void

  • Initiates a navigation to the specified URL without reloading the page and notifies the application via the popstate event.

    Type Parameters

    Parameters

    • path: string | URL

      The path to navigate to. It can be either an absolute URL or a string path relative to the RouterOptions.baseURL.

    • context: C extends EmptyObject
          ? never
          : C

      Any data that needs to be sent to Route.action. The type of this parameter should match the generic C. If C is not provided or is equal to EmptyObject, providing this parameter is forbidden.

    Returns void