Function listen

  • Listen the history change.

    Type Parameters

    Parameters

    • router: RouterInstance<R, V>

      router instance

    • onViewChange: ((v) => void)

      a callback function will be call when view changed

        • (v): void
        • Parameters

          • v: V

          Returns void

    Returns (() => void)

    unlisten - A function that may be used to stop listening

      • (): void
      • Returns void

Generated using TypeDoc