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
  • Error Handling
    core
  • Creating Collection Options Creators
    core
Collections
  • Query Collection
    core
  • Electric Collection
    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
  • 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
  • Error Handling
    core
  • Creating Collection Options Creators
    core
Collections
  • Query Collection
    core
  • Electric Collection
    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
  • React Hooks
    react
  • useLiveQuery
    react
On this page
  • Interface: OptimisticChangeMessage<T>
  • Extends
  • Type Parameters
  • 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:239

Extends

  • ChangeMessage<T>

Type Parameters

• T extends object = Record<string, unknown>

Properties

isActive?

ts
optional isActive: boolean;
optional isActive: boolean;

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


key

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

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

Inherited from

ChangeMessage.key


metadata?

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

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

Inherited from

ChangeMessage.metadata


previousValue?

ts
optional previousValue: T;
optional previousValue: T;

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

Inherited from

ChangeMessage.previousValue


type

ts
type: OperationType;
type: OperationType;

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

Inherited from

ChangeMessage.type


value

ts
value: T;
value: T;

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

Inherited from

ChangeMessage.value

Edit on GitHub

On this page

  • Interface: OptimisticChangeMessage<T>
  • Extends
  • Type Parameters
  • 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!
TanStackForm
Headless, performant, and type-safe form state management for TS/JS, React, Vue, Angular, Solid, Lit and Svelte.
TanStackStore
The immutable-reactive data store that powers the core of TanStack libraries and their framework adapters.