TanStack

T

TanStack

TanStack is a community of passionate software engineers striving for high-quality, open-source software for web devs

Join

react-query-questions

solid-query-questions

table-questions

virtual-questions

router-questions

react-charts-questions

ranger-questions

vue-query-questions

svelte-query-questions

bling-questions

form-questions

angular-query-questions

start-questions

db-questions

start-showcase

router-showcase

📣-announcements

foreign-sapphire
foreign-sapphire11/14/2025

Necessity of Auth Middleware

I'm following https://tanstack.com/start/latest/docs/framework/react/examples/start-basic-auth, on how to set up my own auth. I noticed that in the example there is no auth middleware being used, particularly the fetchPosts and fetchPost functions. We are only checking for user in _authed.tsx like this ```ts...
conscious-sapphire
conscious-sapphire11/14/2025

$_TSR is not defined

hii i'm getting the following error ```js Uncaught ReferenceError: $_TSR is not defined at VM24 oYFISNAU:61:81...
No description
sensitive-blue
sensitive-blue11/14/2025

.well-known

I'm trying to add a .well-known route but the dot notation does not seem to be supported, any suggestions?
wise-white
wise-white11/14/2025

/@handle route not giving a 404 on Netlify

@Manuel Schiller @Netlify (Partner) What I would like I want the following route pattern /@username...
skilled-lime
skilled-lime11/13/2025

Streaming responses only sends first chunk

Hey all! I'm trying to integrate TanStack Start into Vercel Workflow DevKit using nitro and noticed an issue with streaming responses from server routes. I'm unsure if this is just me. When streaming a response (e.g. using ReadableStream), only the first chunk appears to be sent to the client. This seems to happen consistently across different stream tests. Some things I've checked:...
genetic-orange
genetic-orange11/13/2025

[plugin:vite:react-babel] Yallist is not a constructor

Tried updating all dependencies to latest, getting the following error. Any ideas what could cause this? ``` [plugin:vite:react-babel] Yallist is not a constructor...
extended-salmon
extended-salmon11/13/2025

Is it normal __root.tsx is loaded 2x during dev?

I just wanted to know if it is normal that the __root.tsx is called multiple times, 2 times to be exact on each page load during dev? I noticed this is not the case in prod builds so I just wanted to confirm if that is the default behaviour or is there setting to change that behaviour.
rival-black
rival-black11/13/2025

Deploy Tanstack Start on Netlify as full stack project with server functions

I am trying to deploy the app on netlify a full stack app with ssr and server functions etc and can't find a proper docs for this use case I found this doc https://tanstack.com/start/latest/docs/framework/react/guide/hosting But not sure if it is fit for my case....
correct-apricot
correct-apricot11/13/2025

Server Routes are quite slow on Railway with bun preset.

Simple test API with 2 serial DB calls taking a total of 2 ms but the http logs shows over 200 ms total duration. Any one facing/faced anything like this ?? This is my API route ```...
No description
extended-salmon
extended-salmon11/13/2025

Best practices for forms with hydration?

So I'm setting up simple better-auth sign-up/sign-in forms. I tend to do e2e TDD these days and so i'm having trouble with playwright being unable to fill unhydrated form inputs. https://github.com/microsoft/playwright/issues/27759 in this related issue people recommand using a useState boolean to track whether hydration is complete and disabling all fields with this boolean. Something about this irks me...it doesn't seem like the ideal user experience to me. ...
ambitious-aqua
ambitious-aqua11/13/2025

[SOLID] `wrapInSuspense` does nothing?

I'm trying to show a loader until all the routes for current match are ready (nested routes). I understand that they are loaded in parallel, so in the root node I want to use Suspense component and show a fallback, but it disappears almost immediately even I set wrapInSuspense false everywhere. I also don't have pending component. I tried pending component for root node, but it disappears quickly and for some time I just see the blank screen. How to do this?...
metropolitan-bronze
metropolitan-bronze11/12/2025

Single route file for multiple localized slugs (e.g. /corporate and /fr/entreprise)

hi guys, In TanStack Start (file-based routing), how can a single route file (e.g. routes/corporate.tsx) serve multiple real, crawlable paths with different slugs—/corporate and /fr/entreprise—without duplicate/alias files or route masking? https://github.com/TanStack/router/discussions/5592#discussioncomment-14833751...
deep-jade
deep-jade11/12/2025

Custom server entry breaks server functions

"@tanstack/react-start": "^1.135.2" was using a custom server entry for paraglide i18n, but any custom server entry results in server functions returning undefined. https://github.com/kylekz/tss-paraglide...
stormy-gold
stormy-gold11/12/2025

SPA mode error when deploying to CF

im getting a TypeError: Cannot read properties of undefined (reading 'compatibilityFlags') error when deploying to CF with start when i enable SPA mode with these settings: ```ts // vite.config.ts export default defineConfig({ plugins: [...
cloudy-cyan
cloudy-cyan11/12/2025

WebSocket endpoint in TanStack Start

Hi, is there any possibility to create an endpoint (/api/v2/websocket in my case), for live communication in TanStack Start? I tried endlessly with no luck using nitro shenanigans. Hope someone could help. PS: Please ping me if you respond to me. Thanks....
like-gold
like-gold11/12/2025

TSS Wildcard subdomains approach multi-tenant

Hey all, loving tanstack-start! One really great overall feature of both nextjs+vercel as a solution is wildcard subdomains for multi-tenant style applications. Has anyone gone into this? https://vercel.com/blog/wildcard-domains...
deep-jade
deep-jade11/12/2025

disabled javascript in browser

I'm not sure that I understand the SSR thing correctly, but in my understanding it means that the ready html is rendered on the server and sent to the browser, so even with JavaScript disabled, the page would look like it should. What I see now is that the doesn't load it's contents if I disable JS. My component is roughly like this: ```tsx export const Route = createFileRoute( "/{-$a}/_layout/_main/_other/b/c/$d/$e"...
complex-teal
complex-teal11/12/2025

Mantine onClick handlers not running

I'm using Tanstack Start and Mantine. Everything renders as it should. However when I click a button, the onClick never fires. This is the same for other interactive components like SegmentedControl. Does anyone know why this would happen?...
extended-yellow
extended-yellow11/12/2025

Server Function Info Not Found Error in Cloudflare Worker with fetchQuery

This fetchQuery was working on the server side earlier, but after the latest update of the start packages, it’s throwing an error: “server function info not found” in the Cloudflare Worker. Any idea why this might be happening? Could there be an issue with this implementation?...
unwilling-turquoise
unwilling-turquoise11/11/2025

Adding clerk Authentication to Tanstack-start

I've been trying to add clerk Auth to my existing codebase but for some reason I'm getting a 500 server error and I followed every necessary steps provided by the clerk tanstack-start doc