Skip to main content

useChaynsHistoryChildLayer

Callable


  • Returns the child layer with the given id, creating it on mount if it doesn't already exist. Does NOT destroy the layer on unmount — the caller must explicitly call layer.destroyChildLayer(id) to remove it.


    Parameters

    • id: string

    Returns ChaynsHistoryLayer