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

deep-jade
deep-jade9/28/2025

POST requests hang forever

I'm trying to deploy my app using caddy as a reverse proxy. My Tanstack Start app (behind fastify) works fine using docker but as soon as I add caddy: ``` services: proxy:...
magic-beige
magic-beige9/28/2025

Issue with notFound() not rendering with CSS

I have a server action using createServerFn() that checks if an object exists, if it does not i throw a «throw notFound()» and on my page loader: I do a const item = await queryClient.ensureQueryData(query) Etc.., and when it throws notFound i do not get any CSS… How can I fix this?...
absent-sapphire
absent-sapphire9/28/2025

Is there a way to remove index.html?

With virtual routing it seems required.
passive-yellow
passive-yellow9/28/2025

Building for netlify not working on RC

Hi, With the upgrades for to RC I am getting this error when trying to run netlify deploy. ```...
harsh-harlequin
harsh-harlequin9/28/2025

I don't know how to use environment variables.

What do I need to do to use environment variables to connect to a Turso database using Drizzle-ORM?
No description
grumpy-cyan
grumpy-cyan9/27/2025

How do I read session data outside of the asynclocalstorage context?

Is there some function I can pass a request into and get the session data out? I need to get an API token from the session to use in a proxy middleware in my express server running the whole app.
deep-jade
deep-jade9/27/2025

How to redirect in tanstack mutation ?

any idea ? pass router ? redirect function does not work ( handleRedirects: true )
sunny-green
sunny-green9/27/2025

Example of how to forward cookies from client

I am using an external API that creates a session cookie with httpOnly after logging in. How can I forward this cookie from the browser so that I can use it for datafetching?
unwilling-turquoise
unwilling-turquoise9/27/2025

[RC] Cloudflare-vite unable to run dev server and build

I'm unable to run the dev server after upgrading to RC. The issue seems to be related to the getSession in the root's beforeLoad. https://github.com/khashvin/tss-cloudflare/blob/master/src/routes/root.tsx#L16 How can I fix this? Am I missing something? ...
rival-black
rival-black9/27/2025

Getting Started Example's start command not working

There is basic example with the git command npx gitpick TanStack/router/tree/main/examples/react/start-basic start-basic Link: https://tanstack.com/start/latest/docs/framework/react/quick-start This is the first thing we have in getting started, after running this and doing pnpm install, when I run pnpm build and pnpm start, it fails, the reason is start command requires .outputfolder to be generated which is not getting generated currently, we have dist folder and the correct command is not there in start command of package.json...
absent-sapphire
absent-sapphire9/27/2025

Cloudflare worker env var problem

It's impossible to get public env var from client when it's on cloudflare worker? Like if I have a env var call VITE_BACKEND_URL, it's impossible to get it from client?
foreign-sapphire
foreign-sapphire9/27/2025

Route types not working

Hi all, i've got this search route but none of the types are working properly ```ts const SearchSchema = z.object({ q: z.string(),...
sunny-green
sunny-green9/27/2025

How do I run a server function during SSR?

I'm using TS Start with React Query (based on this example https://tanstack.com/start/latest/docs/framework/react/examples/start-basic-react-query) and I want to get a theme cookie during SSR so I don't get a flash of inaccurate color theme. It looks like if I put the server function in the loader it works but doesn't update and if I put it in a useQuery it updates dynamically but flashes a null / system theme first. I could wire up the loader to pass initial data to the query client but I want to make sure I'm not making it too complicated....
national-gold
national-gold9/26/2025

Kill the Start process?

If we're running Start in a docker container and want to have the container die if something is broken in the server (i.e. some required dependency cannot be constructed), is process.exit(1) in the server.ts file the right way to do this?
conscious-sapphire
conscious-sapphire9/26/2025

Custom vite base path causes prerender to fail in SPA mode

When setting vite's base option, I get the following error: ``` [prerender] Prerendering pages... [prerender] Concurrency: 8 [prerender] Crawling: /...
correct-apricot
correct-apricot9/26/2025

how to handle circular dependency breaking hmr?

I've noticed that hmr does not work properly when using server functions and react query running the start-basic-react-query example and changing anything in posts.route for example will trigger a hard refresh because of the way things get imported, running with --debug hmr produces this output vite:hmr circular imports detected: /src/routes/posts.route.tsx -> /src/utils/posts.tsx -> /node_modules/@tanstack/react-start/dist/esm/client.js?v=0794880d -> /node_modules/@tanstack/react-start-client/dist/esm/index.js?v=0794880d -> /node_modules/@tanstack/start-client-core/dist/esm/client/index.js?v=0794880d -> /node_modules/@tanstack/start-client-core/dist/esm/client/hydrateStart.js?v=0794880d -> /src/router.tsx -> /src/routeTree.gen.ts -> /src/routes/posts.route.tsx any suggestions on how to handle this?...
ambitious-aqua
ambitious-aqua9/26/2025

Auth with Keycloak

Has anybody successfully used tanstack start with keycloak (server and client auth)?
flat-fuchsia
flat-fuchsia9/26/2025

[RC] createServerFn: Getting encoded response in network tab

Hi all, Since the RC update we are getting encoded responses in the network tab. ```export const useGetProduct = createServerFn({ method: 'GET' })...
rare-sapphire
rare-sapphire9/26/2025

Deploying on netlify and am getting error

The build went fine, but when I opened the app ```ts import { H3Event, toResponse } from "h3"; ^^^^^^^^^^...
like-gold
like-gold9/26/2025

[RC] ssr: false causes renderToPipeableStream error

I get this error with a simple component in a simple route. If I remove ssr prop it renders normally.