Optional
Defines the key used to restore scroll positions.
<ScrollRestoration getKey={(location, matches) => { // default behavior return location.key }}/> Copy
<ScrollRestoration getKey={(location, matches) => { // default behavior return location.key }}/>
Defines the key used to restore scroll positions.