Initializes and manages a local history object.

  • Parameters

    • Optionaloptions: Partial<IParams>

      The options for the local history.

      • history

        The upper history object to sync with.

      • pathname

        The initial pathname for the history.

    Returns { history: any }

    • The local history object.