Skip to main content

ChaynsHistoryLayerProvider

Callable


  • Provides a ChaynsHistoryLayer to the React subtree and registers it on the module-level layer stack so that getCurrentChaynsHistoryLayer() (static / non-React call sites) also sees this layer as the current one.

    When layer is null, the provider still wraps children but does not register a layer on the stack (useful for disabled history scenarios).

    Use ChaynsHistoryLayerOverrideProvider instead if you only want to override the React context without affecting static call sites.


    Parameters

    Returns ReactNode