db-core/mutations-optimistic

Installation
SKILL.md

Mutations & Optimistic State

Depends on: db-core/collection-setup -- you need a configured collection (with getKey, sync adapter, and optionally onInsert/onUpdate/onDelete handlers) before you can mutate.

TanStack DB mutations follow a unidirectional loop: optimistic mutation -> handler persists to backend -> sync back -> confirmed state. Optimistic state is applied in the current tick and dropped when the handler resolves.


Setup -- Collection Write Operations

insert

Installs
Repository
tanstack/db
GitHub Stars
3.8K
First Seen
db-core/mutations-optimistic — tanstack/db