Remote / foldkit-remote/maintained
restoreAsOf
function · packages/remote/src/maintained/asOf.ts:49
function restoreAsOf<A>(
retained: RetainedAsOf<A> & {
readonly cursor?: unknown
},
): AsOfResult<A>Restore a retained maintained value after reload/reconnect.
Strips any extraneous cursor field, tags freshness as AsOf, and marks
needsRefresh: true so the application reads it again on reconnect.