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
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
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!
TanStackVirtual
Virtualize only the visible content for massive scrollable DOM nodes at 60FPS in TS/JS, React, Vue, Solid, Svelte, Lit & Angular while retaining 100% control over markup and styles.
TanStackDB
TanStack DB extends TanStack Query with collections, live queries and optimistic mutations that keep your UI reactive, consistent and blazing fast 🔥