Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Dec 14, 2025

This PR contains the following updates:

Package Change Age Confidence
@tanstack/react-db (source) 0.1.520.1.67 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

TanStack/db (@​tanstack/react-db)

v0.1.67

Compare Source

Patch Changes

v0.1.66

Compare Source

Patch Changes

v0.1.65

Compare Source

Patch Changes

v0.1.64

Compare Source

Patch Changes

v0.1.63

Compare Source

Patch Changes

v0.1.62

Compare Source

Patch Changes

v0.1.61

Compare Source

Patch Changes
  • Improve runtime error message and documentation when useLiveSuspenseQuery receives undefined from query callback. (#​860)

    Following TanStack Query's useSuspenseQuery design, useLiveSuspenseQuery intentionally does not support disabled queries (when callback returns undefined or null). This maintains the type guarantee that data is always T (not T | undefined), which is a core benefit of using Suspense.

    What changed:

    1. Improved runtime error message with clear guidance:
    useLiveSuspenseQuery does not support disabled queries (callback returned undefined/null).
    The Suspense pattern requires data to always be defined (T, not T | undefined).
    Solutions:
    1) Use conditional rendering - don't render the component until the condition is met.
    2) Use useLiveQuery instead, which supports disabled queries with the 'isEnabled' flag.
    
    1. Enhanced JSDoc documentation with detailed @remarks section explaining the design decision, showing both incorrect (❌) and correct (✅) patterns

    Why this matters:

    // ❌ This pattern doesn't work with Suspense queries:
    const { data } = useLiveSuspenseQuery(
      (q) => userId
        ? q.from({ users }).where(({ users }) => eq(users.id, userId)).findOne()
        : undefined,
      [userId]
    )
    
    // ✅ Instead, use conditional rendering:
    function UserProfile({ userId }: { userId: string }) {
      const { data } = useLiveSuspenseQuery(
        (q) => q.from({ users }).where(({ users }) => eq(users.id, userId)).findOne(),
        [userId]
      )
      return <div>{data.name}</div> // data is guaranteed non-undefined
    }
    
    function App({ userId }: { userId?: string }) {
      if (!userId) return <div>No user selected</div>
      return <UserProfile userId={userId} />
    }
    
    // ✅ Or use useLiveQuery for conditional queries:
    const { data, isEnabled } = useLiveQuery(
      (q) => userId
        ? q.from({ users }).where(({ users }) => eq(users.id, userId)).findOne()
        : undefined,
      [userId]
    )

    This aligns with TanStack Query's philosophy where Suspense queries prioritize type safety and proper component composition over flexibility.

  • Updated dependencies [f795a67, d542667, 6503c09, b1cc4a7]:

v0.1.60

Compare Source

Patch Changes

v0.1.59

Compare Source

Patch Changes

v0.1.58

Compare Source

Patch Changes

v0.1.57

Compare Source

Patch Changes

v0.1.56

Compare Source

Patch Changes

v0.1.55

Compare Source

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]:

v0.1.54

Compare Source

Patch Changes

v0.1.53

Compare Source

Patch Changes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge December 14, 2025 01:41
@renovate renovate bot force-pushed the renovate/tanstack-react-db-0.x-lockfile branch 3 times, most recently from ec2f3b9 to 8e48748 Compare December 19, 2025 17:07
@renovate renovate bot changed the title Update dependency @tanstack/react-db to v0.1.55 Update dependency @tanstack/react-db to v0.1.56 Dec 19, 2025
@renovate renovate bot force-pushed the renovate/tanstack-react-db-0.x-lockfile branch from 8e48748 to f1a906a Compare December 26, 2025 16:54
@renovate renovate bot changed the title Update dependency @tanstack/react-db to v0.1.56 Update dependency @tanstack/react-db to v0.1.59 Dec 26, 2025
@renovate renovate bot changed the title Update dependency @tanstack/react-db to v0.1.59 Update dependency @tanstack/react-db to v0.1.60 Dec 30, 2025
@renovate renovate bot force-pushed the renovate/tanstack-react-db-0.x-lockfile branch 3 times, most recently from ce1b926 to 54d12b6 Compare January 9, 2026 06:50
@renovate renovate bot force-pushed the renovate/tanstack-react-db-0.x-lockfile branch from 54d12b6 to 595c9ba Compare January 14, 2026 21:45
@renovate renovate bot changed the title Update dependency @tanstack/react-db to v0.1.60 Update dependency @tanstack/react-db to v0.1.61 Jan 14, 2026
@renovate renovate bot force-pushed the renovate/tanstack-react-db-0.x-lockfile branch from 595c9ba to 9783deb Compare January 16, 2026 08:46
@renovate renovate bot changed the title Update dependency @tanstack/react-db to v0.1.61 Update dependency @tanstack/react-db to v0.1.62 Jan 16, 2026
@renovate renovate bot force-pushed the renovate/tanstack-react-db-0.x-lockfile branch 7 times, most recently from 1346e4d to 2b5403a Compare January 20, 2026 03:03
@renovate renovate bot changed the title Update dependency @tanstack/react-db to v0.1.62 Update dependency @tanstack/react-db to v0.1.63 Jan 20, 2026
@renovate renovate bot force-pushed the renovate/tanstack-react-db-0.x-lockfile branch from 2b5403a to d3a984c Compare January 21, 2026 01:05
@renovate renovate bot changed the title Update dependency @tanstack/react-db to v0.1.63 Update dependency @tanstack/react-db to v0.1.64 Jan 21, 2026
@renovate renovate bot force-pushed the renovate/tanstack-react-db-0.x-lockfile branch 2 times, most recently from c922851 to 998c6ad Compare January 26, 2026 22:02
@renovate renovate bot changed the title Update dependency @tanstack/react-db to v0.1.64 Update dependency @tanstack/react-db to v0.1.65 Jan 26, 2026
@renovate renovate bot force-pushed the renovate/tanstack-react-db-0.x-lockfile branch from 998c6ad to a6f81db Compare January 27, 2026 18:09
@renovate renovate bot changed the title Update dependency @tanstack/react-db to v0.1.65 Update dependency @tanstack/react-db to v0.1.66 Jan 27, 2026
@renovate renovate bot force-pushed the renovate/tanstack-react-db-0.x-lockfile branch from a6f81db to ce4a797 Compare January 31, 2026 01:39
@renovate renovate bot changed the title Update dependency @tanstack/react-db to v0.1.66 Update dependency @tanstack/react-db to v0.1.67 Jan 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants