@resistdesign/voltra
    Preparing search index...

    Function createNativeHistory

    • Create a native history controller backed by in-memory history.

      Lifecycle behavior:

      • start() is idempotent.
      • stop() is idempotent.
      • start() applies getInitialURL() once per start cycle only if navigation state has not changed since startup began.
      • This prevents late getInitialURL() resolution from overriding user navigation that happened during startup.

      Incoming URL behavior:

      • "replace" updates current entry (default).
      • "push" appends a new entry.

      Example:

      const history = createNativeHistory({
      adapter: linkingAdapter,
      onIncomingURL: "replace",
      });
      await history.start();

      Parameters

      Returns NativeHistoryController