github TanStack/db @tanstack/react-db@0.1.55

latest releases: @tanstack/query-db-collection@1.0.6, @tanstack/rxdb-db-collection@0.1.43, @tanstack/offline-transactions@1.0.1...
5 hours ago

Patch Changes

  • Fixed isReady to return true for disabled queries in useLiveQuery/injectLiveQuery across all framework packages. When a query function returns null or undefined (disabling the query), there's no async operation to wait for, so the hook should be considered "ready" immediately. (#886)

    Additionally, all frameworks now have proper TypeScript overloads that explicitly support returning undefined | null from query functions, making the disabled query pattern type-safe.

    This fixes the common pattern where users conditionally enable queries and don't want to show loading states when the query is disabled.

  • Updated dependencies [c4b9399, a1a484e]:

    • @tanstack/db@0.5.11

Don't miss a new db release

NewReleases is sending notifications on new releases.