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>.
<ScrollLockManager>
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>.