scrollRestoration.set
This is a helper that helps you easily set/clear related to scrollRestoration.
Example
useEffect(() => {
const clear = scrollRestoration.set('manual');
return () => clear();
}, []);
This is a helper that helps you easily set/clear related to scrollRestoration.
useEffect(() => {
const clear = scrollRestoration.set('manual');
return () => clear();
}, []);