create-t3-app icon indicating copy to clipboard operation
create-t3-app copied to clipboard

feat: trpc tanstack query integration

Open GIP2000 opened this issue 4 months ago • 4 comments

Closes #2065

✅ Checklist

  • [x] I have followed every step in the contributing guide (updated 2022-10-06).
  • [x] The PR title follows the convention we established conventional-commit
  • [x] I performed a functional test on my final commit

Changelog

This updates the app router to use the new trpc tanstack query integration over the classical one as described in the trpc docs

GIP2000 avatar Jul 18 '25 20:07 GIP2000

🦋 Changeset detected

Latest commit: 46bbb9a51105c852fdc924dd20a299bdb72f6be5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
create-t3-app Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar Jul 18 '25 20:07 changeset-bot[bot]

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

Name Status Preview Comments Updated (UTC)
create-t3-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2025 8:53pm

vercel[bot] avatar Jul 18 '25 20:07 vercel[bot]

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​types/​react-dom@​19.1.61001007387100
Added@​types/​react@​19.1.81001007891100

View full report

socket-security[bot] avatar Jul 18 '25 20:07 socket-security[bot]

I also would like someones opinion on how I implemented the prefetching for RSC. My rationale was that there are a lot of different api like variables that need to be imported (useApi for the client and api for the server) and I didn't want to add another one for prefetching since it felt a little confusing (especially since you might be doing a query and prefetching and they need different api imports) so I tried out this function with a callback that will handle it for you but it also feels a little strange so would like some input on that.

This is my first OS contribution so let me know if I did anything incorrectly I apologize in advanced and I'm happy to fix anything I did incorrectly.

GIP2000 avatar Jul 18 '25 20:07 GIP2000

Can't wait for this

mmikhan avatar Nov 26 '25 10:11 mmikhan