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

extended-salmon
extended-salmon10/11/2025

Consider adding nonce in Tanstack/start

hello devs of tanstack. I noticed that nonce is not exists in <Scripts /> this will allow the nonce csp to deny on unsafe script ...
rival-black
rival-black10/11/2025

The sub-route's context type is inferred as undefined, which contradicts the facts.

As the title suggests, here are the reproduction steps: https://stackblitz.com/edit/github-emnv33sw?file=src%2Froutes%2F_pathless%2Froute.tsx,src%2Froutes%2F_pathless%2Fchild.tsx I'm working on a protected API route using pathless middleware. Any suggestions for a better implementation are welcome!...
flat-fuchsia
flat-fuchsia10/10/2025

Need Help Server Fn Error with Zod

How to properly serialized zod error to client with serverFn and tanstack query Project repo ```typescript // zod schema...
xenial-black
xenial-black10/10/2025

Module federation

Anyone use tanstack router for mfe with module federation? Can we change bundler from vite to rspack/rsbuild?
xenial-black
xenial-black10/10/2025

500 error from server functions when using getRequestHeaders in production with Bun

I have a separate API and am using server functions to proxy requests that need headers like so: ```ts export const getData = createServerFn().handler(async () => { return getData({...
correct-apricot
correct-apricot10/9/2025

Nitro v2 plugin causing _shell.html to not build in spa mode

Hi there, I'm having issues with SPA mode then using the Nitro plugin. When the plugin is enabled, no _shell.html file is generated, but disabling it _shell.html is generated as expected. I have put up an example repo here, the base is generated from npm create @tanstack/start@latest https://github.com/clawrence121/tss-spa-mode-not-rendering-shell ...
genetic-orange
genetic-orange10/9/2025

Is FOUC expected to occur any time SSR is not true?

Just wondering if this is expected or what can be done to not have the flash of unstyled content occur when ssr is set to either data-only or false Here is a very minimal reproduction with all the latest packages and using (what I assume is the most stable/recommended) nitro v2 plugin. I've also tried the same thing with the nitro v3 beta. Happening in dev mode with Vite and also when running the production server from .output...
rare-sapphire
rare-sapphire10/9/2025

Can't use "@react-pdf/renderer" client side in the RC

After updating to RC, it's no longer possible to use "@react-pdf/renderer" in the client-side; we receive this error directly when visiting the page that uses it: ``` TypeError: inherits4 is not a function at node_modules/queue/index.js (@react-pdf_renderer.js?v=c121c985:439:5)...
round-purple
round-purple10/9/2025

Statis Site Generation

I want to build my site as static htmls. I'm using prerender and the data loader fn has the staticFunctionMiddleware. and idea what's missing? ``` // vite.config.ts...
fair-rose
fair-rose10/9/2025

Auth0 and Tanstack Start Integration

Is there any updated detailed guide to implement Auth0 with Tanstack Start. If anyone can refer to a guide or a repo much appriciated Thanks in advace...
rival-black
rival-black10/9/2025

Pest practices for persisting large dataset

I'm creating an offline-first application that needs to keep a large dataset available for offline use. What's the best practice for persisting the storage? It seems odd for TanStack DB to not have a built-in option for this, so I must be missing something. using window.localStorage runs into size limits. I'm also using TanStack Start
metropolitan-bronze
metropolitan-bronze10/8/2025

Auth throwing errors

I just created fresh project with npm create @tanstack/start@latest -o tanstack-start-auth-test. Then added auth accordingly to Authentication. Ended up with a project that i zipped and attached here....
rival-black
rival-black10/8/2025

Streaming data from server functions link broken

The following section on the server functions page has a broken link. Does anyone know where the guide is? https://tanstack.com/start/latest/docs/framework/react/server-functions#streaming
Streaming Stream typed data from server functions to the client. See the Streaming Data from Server Functions guide: https://tanstack.com/start/latest/docs/framework/react/guide/streaming-data-from-server-functions...
rival-black
rival-black10/8/2025

Dev mode cache logic question

When running dev, I have to re-fetch all of my collections each time i refresh the page. I'm sure I'm ignorant here, but shouldn't it persist the data across refreshes and update it being local first? Or is this by design in dev mode?
firm-tan
firm-tan10/8/2025

Seeing this SSR issue trying to deploy to vercel tonight. On version 1.131.28

I thought SSR was on by default? TypeError: Cannot set properties of undefined (setting 'ssr') at attachRouterServerSsrUtils (file:///var/task/node_modules/.nitro/@tanstack/router-core@1.132.47/dist/esm/ssr/ssr-server.js:32:14) ... 7 lines matching cause stack trace ......
rare-sapphire
rare-sapphire10/7/2025

useSession returning partial UserSession in Start RC

I updated the dependencies to version ^1.132.47 and strangely since then useSession no longer returns the session type but a partial of the type.
const { data } = await useSession<{userId: string; age: number}>
const { data } = await useSession<{userId: string; age: number}>
...
rising-crimson
rising-crimson10/7/2025

Issue with Generic Handler Factory for TanStack Start Routes

I'm trying to create a reusable handler factory pattern for TanStack Start API routes The Problem: The RouteMethodHandlerCtx type requires 5 generics, including a specific route path as the 3rd generic parameter (e.g., '/demo/api/endpoint-factory'). When I try to make my factory generic to work with any route, I can't properly type the route path parameter. What I'm trying to achieve: A reusable handler factory that:...
metropolitan-bronze
metropolitan-bronze10/7/2025

Hosting in Docker with Nitro problems

I try to follow Hosting article. I want to host it in Docker, so i choose Nitro V3. However, in the docs there's import import { nitro } from 'nitro/vite' which should be import { nitro } from 'nitro-nightly/vite' to be aligned with suggested package. Moreover, after including nitro in vite.config.js I get error:...
metropolitan-bronze
metropolitan-bronze10/7/2025

Request Context's properties are null when defined in Server Entry Point

I am trying to follow Server Entry Point and i try to define request context there, as defined. However in middleware for my Route i expect to get the values of context properties that i have set, but they are all null. ``` // src/routes/server-entry-point.tsx...
Next