Type alias OnRouteChange<T>

OnRouteChange<T>: ((route: Route<T>) => void)

Type Parameters

  • T extends string = string

Type declaration

    • (route: Route<T>): void
    • Callback function for when the route changes. This function should be used to update the route in the application state. For example:

      router.start(route => cell.update({ route: () => route }));
      

      Parameters

      • route: Route<T>

        the current route.

      Returns void

Generated using TypeDoc