Type alias SyncLocationBar<T>

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

Type Parameters

  • T extends string = string

    See RouteConfig for details.

Type declaration

    • (route: Route<T>): void
    • Function that synchronizes the location bar with the application state route. This should be done when the application state changes, i.e.:

      cells.map((cell) => {
      router.syncLocationBar(cell.state.route);
      });

      Parameters

      • route: Route<T>

        the current route.

      Returns void

Generated using TypeDoc