TanStackDB v0
Auto
Framework
Version
Menu
  • Home
  • Frameworks
  • Contributors
  • GitHub
  • Discord
Getting Started
  • Overview
    core
  • Quick Start
    core
  • Installation
    core
  • React Adapter
    react
Guides
  • Live Queries
    core
  • Mutations
    core
  • Error Handling
    core
  • Creating Collection Options Creators
    core
Collections
  • Query Collection
    core
  • Electric Collection
    core
  • RxDB Collection
    core
  • PowerSync Collection
    core
Community
  • Resources & Packages
    core
API Reference
  • Core API Reference
    core
  • Collection
    core
  • createCollection
    core
  • liveQueryCollectionOptions
    core
  • createLiveQueryCollection
    core
  • createOptimisticAction
    core
  • createTransaction
    core
  • Electric DB Collection
    core
  • electricCollectionOptions
    core
  • Query DB Collection
    core
  • queryCollectionOptions
    core
  • RxDB DB Collection
    core
  • rxdbCollectionOptions
    core
  • PowerSync Collection
    core
  • powerSyncCollectionOptions
    core
  • React Hooks
    react
  • useLiveQuery
    react
TanStackDB v0
Auto
Framework
Version
Menu
  • Home
  • Frameworks
  • Contributors
  • GitHub
  • Discord
Getting Started
  • Overview
    core
  • Quick Start
    core
  • Installation
    core
  • React Adapter
    react
Guides
  • Live Queries
    core
  • Mutations
    core
  • Error Handling
    core
  • Creating Collection Options Creators
    core
Collections
  • Query Collection
    core
  • Electric Collection
    core
  • RxDB Collection
    core
  • PowerSync Collection
    core
Community
  • Resources & Packages
    core
API Reference
  • Core API Reference
    core
  • Collection
    core
  • createCollection
    core
  • liveQueryCollectionOptions
    core
  • createLiveQueryCollection
    core
  • createOptimisticAction
    core
  • createTransaction
    core
  • Electric DB Collection
    core
  • electricCollectionOptions
    core
  • Query DB Collection
    core
  • queryCollectionOptions
    core
  • RxDB DB Collection
    core
  • rxdbCollectionOptions
    core
  • PowerSync Collection
    core
  • powerSyncCollectionOptions
    core
  • React Hooks
    react
  • useLiveQuery
    react
On this page
  • Interface: OptimisticChangeMessage<T>
  • Extends
  • Type Parameters
  • T
  • Properties
  • isActive?
  • key
  • Inherited from
  • metadata?
  • Inherited from
  • previousValue?
  • Inherited from
  • type
  • Inherited from
  • value
  • Inherited from

OptimisticChangeMessage

Interface: OptimisticChangeMessage<T>

Defined in: packages/db/src/types.ts:272

Extends

  • ChangeMessage<T>

Type Parameters

T

T extends object = Record<string, unknown>

Properties

isActive?

ts
optional isActive: boolean;
optional isActive: boolean;

Defined in: packages/db/src/types.ts:276


key

ts
key: string | number;
key: string | number;

Defined in: packages/db/src/types.ts:265

Inherited from

ChangeMessage.key


metadata?

ts
optional metadata: Record<string, unknown>;
optional metadata: Record<string, unknown>;

Defined in: packages/db/src/types.ts:269

Inherited from

ChangeMessage.metadata


previousValue?

ts
optional previousValue: T;
optional previousValue: T;

Defined in: packages/db/src/types.ts:267

Inherited from

ChangeMessage.previousValue


type

ts
type: OperationType;
type: OperationType;

Defined in: packages/db/src/types.ts:268

Inherited from

ChangeMessage.type


value

ts
value: T;
value: T;

Defined in: packages/db/src/types.ts:266

Inherited from

ChangeMessage.value

Edit on GitHub

On this page

  • Interface: OptimisticChangeMessage<T>
  • Extends
  • Type Parameters
  • T
  • Properties
  • isActive?
  • key
  • Inherited from
  • metadata?
  • Inherited from
  • previousValue?
  • Inherited from
  • type
  • Inherited from
  • value
  • Inherited from
Home
Our Partners
Wow, it looks like you could be our first partner for this library! Chat with us!
TanStackStart
Full-document SSR, Streaming, Server Functions, bundling and more, powered by TanStack Router and Vite - Ready to deploy to your favorite hosting provider.
TanStackStore
The immutable-reactive data store that powers the core of TanStack libraries and their framework adapters.