[PR #4914] [CLOSED] Update tanstack.mdx #13900

Closed
opened 2026-04-13 09:12:08 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4914
Author: @dyeoman2
Created: 9/25/2025
Status: Closed

Base: mainHead: patch-2


📝 Commits (1)

📊 Changes

1 file changed (+26 additions, -20 deletions)

View changed files

📝 docs/content/docs/integrations/tanstack.mdx (+26 -20)

📄 Description

•	Migrated from createServerFileRoute to createFileRoute for auth routes.
•	Refactored src/server.ts to use createStartHandler with defaultRenderHandler and async fetch entrypoint.
•	Flagged reactStartCookies as deprecated/possibly unneeded in better-auth integration. Added inline comments to highlight that this may need removal or further confirmation before merging.
•	Updated docs to reflect new handler patterns and note potential deprecation cleanup.

Summary by cubic

Updates TanStack integration docs to match current React Start/Router APIs, switching to createFileRoute server handlers and a simplified server bootstrap. Also flags reactStartCookies as likely deprecated.

  • Refactors

    • Replaced createServerFileRoute with createFileRoute using server.handlers for GET/POST auth routes.
    • Updated server.ts to use createStartHandler + defaultRenderHandler and export an async fetch entrypoint.
  • Migration

    • Change /src/routes/api/auth/$.ts to createFileRoute with server.handlers.
    • Update server.ts to the new handler pattern and export fetch.
    • Review better-auth setup; remove reactStartCookies if not needed.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/4914 **Author:** [@dyeoman2](https://github.com/dyeoman2) **Created:** 9/25/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `patch-2` --- ### 📝 Commits (1) - [`704a1be`](https://github.com/better-auth/better-auth/commit/704a1be8010b3904c314d82c0245a036b0094209) Update tanstack.mdx ### 📊 Changes **1 file changed** (+26 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/integrations/tanstack.mdx` (+26 -20) </details> ### 📄 Description • Migrated from createServerFileRoute to createFileRoute for auth routes. • Refactored src/server.ts to use createStartHandler with defaultRenderHandler and async fetch entrypoint. • Flagged reactStartCookies as deprecated/possibly unneeded in better-auth integration. Added inline comments to highlight that this may need removal or further confirmation before merging. • Updated docs to reflect new handler patterns and note potential deprecation cleanup. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Updates TanStack integration docs to match current React Start/Router APIs, switching to createFileRoute server handlers and a simplified server bootstrap. Also flags reactStartCookies as likely deprecated. - **Refactors** - Replaced createServerFileRoute with createFileRoute using server.handlers for GET/POST auth routes. - Updated server.ts to use createStartHandler + defaultRenderHandler and export an async fetch entrypoint. - **Migration** - Change /src/routes/api/auth/$.ts to createFileRoute with server.handlers. - Update server.ts to the new handler pattern and export fetch. - Review better-auth setup; remove reactStartCookies if not needed. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 09:12:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#13900