Performance considerations for react-remove-scroll
masterreact-remove-scroll uses non-passive event listeners to ensure synchronous scroll/touch handling. This is necessary for the library to function correctly but may trigger warnings in Chrome DevTools and can impact scrolling performance.
Optimization Tip:
If you are dealing with very large scrollable areas, consider using the noIsolation prop to mitigate performance impacts.