Some CSS techniques may limit scrolling within a specific div, rather than allowing the normal window level scrolling. In order to handle scroll restoration within such a scenario, an optional 'scrollAreaId' parameter is added to useScrollRestoration. If the parameter is set, and a div with that ID is found, then the scroll position of the specified div is saved/restored as needed.
Some CSS techniques may limit scrolling within a specific div, rather than allowing the normal window level scrolling. In order to handle scroll restoration within such a scenario, an optional 'scrollAreaId' parameter is added to useScrollRestoration. If the parameter is set, and a div with that ID is found, then the scroll position of the specified div is saved/restored as needed.