HistoryEntry

See source code
Table of contents

An entry containing changes that originated either by user actions or remote changes. History entries are used to track and replay changes to the store.

interface HistoryEntry<R extends UnknownRecord = UnknownRecord> {}

Example

const entry: HistoryEntry<Book> = {
  changes: {
    added: { 'book:123': bookRecord },
    updated: {},
    removed: {},
  },
  source: 'user',
}

Properties

changes

The changes that occurred in this history entry

changes: RecordsDiff<R>

source

The source of these changes

source: ChangeSource

Prev
CreateComputedCacheOpts
Next
LegacyBaseMigrationsInfo