loadSnapshotIntoStorage
See source codeLoads a snapshot into storage during a transaction. Migrates the snapshot to the current schema and loads it into storage.
function loadSnapshotIntoStorage<R extends UnknownRecord>(
txn: TLSyncStorageTransaction<R>,
schema: StoreSchema<R, any>,
snapshot: RoomSnapshot | TLStoreSnapshot
): voidParameters
| Name | Description |
|---|---|
| The transaction to load the snapshot into |
| The current schema |
| The snapshot to load |
Returns
voidPrev
useSyncDemoNext
centerSelectionAroundPoint