You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was reading the hook source code and I was wondering if it really needs to specify {passive: true}. The scroll event should be passive by default since it cannot be cancelled. Check the last paragraph:
You don't need to worry about the value of passive for the basic scroll event. Since it can't be canceled, event listeners can't block page rendering anyway.
The text was updated successfully, but these errors were encountered:
I was reading the hook source code and I was wondering if it really needs to specify
{passive: true}
. Thescroll
event should be passive by default since it cannot be cancelled. Check the last paragraph:The text was updated successfully, but these errors were encountered: