Skip to main content

ChaynsHistoryLayerOverrideProvider

Callable


  • Overrides the ChaynsHistoryLayer for the React subtree only — hooks such as useChaynsHistoryLayer, useChaynsHistoryRoute, useChaynsHistoryNavigate, etc. will resolve to the provided layer, but getCurrentChaynsHistoryLayer() (the static / non-React accessor that reads from the module-level layer stack) is left unchanged.

    This is useful when you need to scope history to a specific layer inside a React tree without affecting imperative call sites outside that tree.


    Parameters

    Returns ReactNode