Skip to content

Conversation

@juliusmarminge
Copy link
Member

@juliusmarminge juliusmarminge commented Oct 17, 2024

create a new package with only the queryOptions API

Closes #4012

TODO

  • namings tbd
  • react context provider
  • create utils both with router (for direct proc invoks) and client
    • RSC helpers
  • trpc.post.create.mutationOptions ?
  • trpc.chat.subscriptionOptions ?
    • with accompanying useSubscription hook
  • nicer hovers
    CleanShot 2024-10-18 at 21 37 02@2x

Questions

Code is now all duplicated between here and @trpc/react-query

Summary by CodeRabbit

  • New Features

    • Enhanced integration between TRPC and TanStack React Query, featuring improved data fetching, caching, prefetching, and subscription handling.
    • Updated client configuration using a refined context provider, resulting in a more flexible and robust API.
  • Documentation

    • Added comprehensive migration guides, usage docs, and a blog announcement to help developers smoothly transition to the new integration.

@juliusmarminge juliusmarminge requested a review from a team as a code owner October 17, 2024 22:31
@railway-app
Copy link

railway-app bot commented Oct 17, 2024

🚅 Deployed to the pr-6c634a-6134 environment in trpc-sse-and-websockets

Service Status Web Updated (UTC)
next-prisma-websockets-starter ◻️ Removed (View Logs) Feb 12, 2025 at 3:32 pm

@vercel
Copy link

vercel bot commented Oct 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-prisma-starter ✅ Ready (Inspect) Visit Preview Feb 12, 2025 3:27pm
og-image ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 12, 2025 3:27pm
www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 12, 2025 3:27pm

KATT
KATT previously approved these changes Feb 12, 2025
KATT
KATT previously approved these changes Feb 12, 2025
@KATT KATT merged commit 71c7ccc into next Feb 12, 2025
42 of 43 checks passed
@KATT KATT deleted the standalone-queryoptions-package branch February 12, 2025 15:31
@github-actions
Copy link
Contributor

This pull request has been locked because we are very unlikely to see comments on closed issues. If you think, this PR is still necessary, create a new one with the same branch. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Make React-Query integration less opaque

4 participants