Scroll reminder for native OR simulate scroller.
npm install afeiship/next-scroll-minder
// history.scrollRestoration
import NxScrollMinder from 'next-scroll-minder';
//attach when window/your scroller loaded:
NxScrollMinder.attach(window/this._scroller);
NxScrollMinder.attachNative(window);
NxScrollMinder.attachSimulate(this._scroller);
// manual trigger if you needed:
NxScrollMinder.scrollToRestored();