StoreSnapshot
See source codeTable of contents
A snapshot of the store including both data and schema information. This enables proper migration when loading data from different schema versions.
interface StoreSnapshot<R extends UnknownRecord> {}
Example
const snapshot = store.getStoreSnapshot()
// Later...
store.loadStoreSnapshot(snapshot)
Properties
schema
The serialized schema information
schema: SerializedSchema
store
The serialized store data
store: SerializedStore<R>
Prev
StoreSchemaOptionsNext
StoreValidationFailure