clearEditScrollStorage
clearEditScrollStorage():
void
Defined in: packages/react/src/admin/usePreservedScrollTop.ts:53
Clears every persisted edit-view scroll offset — call this from the
sign-out flow, alongside disableLivePreview() (@vexcms/next/livePreview/client),
so a different identity signing in on the same tab never inherits a prior
user’s remembered scroll positions.
Collects matching keys first, then removes them: sessionStorage’s own
key(index) enumeration shifts as entries are removed, so removing while
iterating it directly would skip entries.
Returns
Section titled “Returns”void