Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update trpc.mdx to work better with Next 15 and tRPC 11 #2054

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

haldunanil
Copy link

@haldunanil haldunanil commented Feb 24, 2025

What does this solve?

  • Update documentation to integrate Clerk with tRPC in v11
  • In the most recent version of tRPC, the createContext function is not always given the options arg which causes issues when used in server components. Provided the routes used are also in the app router, using auth() results in more consistent behavior and fixes type errors.

What changed?

  • No code changes, but documentation updated to use auth instead of getAuth

Checklist

  • I have clicked on "Files changed" and performed a thorough self-review
  • I have added the "deploy-preview" label and added the preview link(s) to this PR description
  • All existing checks pass

@haldunanil haldunanil requested a review from a team as a code owner February 24, 2025 17:15
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.

1 participant