TanStack
DB v0v0
Framework
StartRouter
Data & State
QueryDBStoreAI
UI & UX
TableFormHotkeysMarkdownHighlight
Performance
VirtualPacer
Tooling
DevtoolsConfigCLIIntent
Blog
Blog & Release Notes
About
YouTubeThe official TanStack channel.WorkshopsLive sessions from the maintainers.Release NotesThe latest releases and changelog.
Channels
DiscordReal-time community support.GitHubSource, issues, discussions, and releases.
People & Work
MaintainersMeet the people maintaining the stack.ContributorsCore, library, and community contributors.ShowcaseTeams building with TanStack.
Tools
BuilderAlphaGenerate TanStack app starters.StatsNPM and ecosystem usage data.
Merch
View all
Support
Support OverviewFind the right support path.PartnersCompanies supporting TanStack.OSS SponsorsSponsors keeping TanStack open source.Enterprise SupportPrivate consulting and expert support.ContactGet in touch with the TanStack team.
About
EthosHow we approach open source.TenetsThe values that shape TanStack libraries.Design SystemLogos, tokens, and UI components.
Partners

Sponsorships, placements, and partner pages.

Work with
TanStack
Partnership Inquiry
Log In
Log In
Blog & Release Notes
About
YouTubeThe official TanStack channel.WorkshopsLive sessions from the maintainers.Release NotesThe latest releases and changelog.
Channels
DiscordReal-time community support.GitHubSource, issues, discussions, and releases.
People & Work
MaintainersMeet the people maintaining the stack.ContributorsCore, library, and community contributors.ShowcaseTeams building with TanStack.
Tools
BuilderAlphaGenerate TanStack app starters.StatsNPM and ecosystem usage data.
View all
Support
Support OverviewFind the right support path.PartnersCompanies supporting TanStack.OSS SponsorsSponsors keeping TanStack open source.Enterprise SupportPrivate consulting and expert support.ContactGet in touch with the TanStack team.
About
EthosHow we approach open source.TenetsThe values that shape TanStack libraries.Design SystemLogos, tokens, and UI components.
Partnership Inquiry
Docs
API Reference
  • Core API Reference
  • Collection
  • createCollection
  • liveQueryCollectionOptions
  • createLiveQueryCollection
  • createOptimisticAction
  • createTransaction
  • Electric DB Collection
  • electricCollectionOptions
  • Query DB Collection
  • queryCollectionOptions
  • RxDB DB Collection
  • rxdbCollectionOptions
  • PowerSync Collection
  • powerSyncCollectionOptions
  • createIndexedDB
  • indexedDBCollectionOptions
  • React Hooks
  • useLiveQuery
HomeGet StartedGuidesAPI
API Reference
  • Core API Reference
  • Collection
  • createCollection
  • liveQueryCollectionOptions
  • createLiveQueryCollection
  • createOptimisticAction
  • createTransaction
  • Electric DB Collection
  • electricCollectionOptions
  • Query DB Collection
  • queryCollectionOptions
  • RxDB DB Collection
  • rxdbCollectionOptions
  • PowerSync Collection
  • powerSyncCollectionOptions
  • createIndexedDB
  • indexedDBCollectionOptions
  • React Hooks
  • useLiveQuery
AI/LLM: This documentation page is available in plain markdown format at/db/latest/docs/reference/interfaces/CurrentStateAsChangesOptions.md

CurrentStateAsChangesOptions

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

Options for getting current state as changes

Properties#

limit?#

ts
optional limit: number;

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


optimizedOnly?#

ts
optional optimizedOnly: boolean;

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


orderBy?#

ts
optional orderBy: OrderBy;

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


where?#

ts
optional where: BasicExpression<boolean>;

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

Pre-compiled expression for filtering the current state

Edit on GitHub
NextCore API Reference

On this page

  • Properties
  • limit?
  • optimizedOnly?
  • orderBy?
  • where?
Blog
@Tan_Stack on X.com
@TannerLinsley on X.com
GitHub
YouTube
Ethos
Tenets
Privacy Policy
Terms of Service
© 2026 TanStack LLC
PartnersBecome a Partner
Gold
CodeRabbitCodeRabbit
LovableLovable
CloudflareCloudflare
NetlifyNetlify
RailwayRailway
Silver
AG GridAG Grid
SerpApiSerpApi
OpenRouterOpenRouter
WorkOSWorkOS
ClerkClerk
Bronze
ElectricElectric
PrismaPrisma
UnkeyUnkey
SentrySentry
Latest Posts