enableScrollRestoration

abstract fun enableScrollRestoration(savedScrollPositions: ReadonlyRecord<String, Double>, getScrollPosition: GetScrollPositionFunction, getKey: GetScrollRestorationKeyFunction = definedExternally): () -> Unit(source)

Parameters

savedScrollPositions

Object that will manage positions, in case it's being restored from sessionStorage

getScrollPosition

Function to get the active Y scroll position

getKey

Function to get the key to use for restoration