@resistdesign/voltra
    Preparing search index...

    Function createMemoryHistory

    • Create an in-memory history implementation.

      Parameters

      • initialPath: string = "/"

        Initial path used for the first entry.

      Returns HistoryController

      History controller backed by an in-memory stack.

      Behavior notes:

      • go(delta) clamps to valid bounds [0, length - 1].
      • push after back drops forward entries.
      • listeners are called only when active location changes.

      Example:

      const history = createMemoryHistory("/home?tab=all");
      history.push("/details/42");
      history.back();