Patch Changes
-
Fixed
isReadyto returntruefor disabled queries inuseLiveQuery/injectLiveQueryacross all framework packages. When a query function returnsnullorundefined(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 | nullfrom 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