Function useHistorySubscription

  • Subscribes component to updates of a history adapter and triggers re-render when history location is changed.

    Parameters

    • history: History

      The history to subscribe to.

    Returns void