51547318e18b2ecdf20dbcd3f8654c122b67ec38
- Introduces a local tracking variable in `Navbar` scroll effect to prevent redundant `setState` calls during scroll. - Ensures the state is correctly initialized on mount if the page is already scrolled. - Uses `requestAnimationFrame` for efficient scroll handling. This reduces the number of React reconciliation cycles during scrolling, improving main thread performance. Co-authored-by: ragusa-it <196988693+ragusa-it@users.noreply.github.com>
Description
No description provided
Languages
TypeScript
79.1%
CSS
20.3%
HTML
0.6%