loadSnapshotIntoStorage
Loads 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,
): void;Parameters
| Name | Description |
|---|---|
| The transaction to load the snapshot into |
| The current schema |
| The snapshot to load |
Returns
void;Prev
useSyncDemoNext
centerSelectionAroundPoint