react-scrolllock
react-scrolllock copied to clipboard
isActive is not delayed on load
There's a delay after loading the page before isActive is loaded. I set the isActive with a state called isLoading which is default as true but the scroll is not locked when the page loads but it is locked after about 500ms. In this code, while Dimmer is already active, ScrollLock is not
<ScrollLock isActive={props.isLoading} />
<Dimmer active={props.isLoading}>
<Loader>Loading</Loader>
</Dimmer>```
Can you provide a reproduction?
They stopped the repairs. I had to do it myself, in the same way, with a new version of typeScript. And fix these problems for everyone to use. add react hooks、vue3 example
npm i body-scroll-lock-upgrade
repair log,Refer to the releases page.