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
The top navigation disappears when you scroll down and reappears when you scroll up.
Like browsers, and many content services like Medium,
This is a necessary feature for mobile readers with a small viewport.
Also made some code changes here to add memoization,
because the scroll event is highly frequant.
`React.useState` preserves the reference of the set dispatcher, but doesn't for the surrounding tuple.
Adding a few memo, most children, except for components that are cheap to render, are not re-rendered.
Also no deep re-render, the appearance state is propagated via old good CSS cascading rather than React state.
0 commit comments