Skip to main content

scrollRestoration.set

This is a helper that helps you easily set/clear related to scrollRestoration.

Example

useEffect(() => {
const clear = scrollRestoration.set('manual');
return () => clear();
}, []);