Hex Core JS
    Preparing search index...

    Function useScrollLockOnMount

    • Adds a page scroll lock on mount and removes the lock before unmount.

      Note: component using this hook must be a descendant of a <ScrollLockManager>.

      Parameters

      • condition: boolean = true

      Returns void