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

sensitive-blue
sensitive-blue9/8/2025

redirects when using createServerFn

using redirect with the new setupRouterSsrQueryIntegration({ router, queryClient, }); seems to be breaking. ...
extended-salmon
extended-salmon9/8/2025

Deploying on cloudflare? what are the best practise to deal with env variables?

when to retrieve env secret for examples for the database connection, or event better-auth settings? on global context? using a global middleware?...
solid-orange
solid-orange9/6/2025

Deploy cloudlfare worker error

I'm trying to deploy my tanstack start app to cloudflare workers. When I deploy with wrangler CLI it works fine, but when I connect my github so that it triggers deploy when I push some code the deploy fails. Here are logs from cloudflare: ``` 21:27:36.092 Using redirected Wrangler configuration. 21:27:36.092 - Configuration being used: ".output/server/wrangler.json" 21:27:36.092 - Original user's configuration: "wrangler.toml"...
vicious-gold
vicious-gold9/6/2025

deduplicate LD+json

could we have a way to identify script tags in route head via an id/key so we can deduplicate them (unlike say a link rel which is easy to dedupe)? right now i am seeing that if i have an ld+json in the root.tsx and one in the route, i end up with 4 or even 6 ld json script tags
optimistic-gold
optimistic-gold9/5/2025

Beta Timeline?

Hi there, I have a pretty basic question. Does TanStack Start have a timeline or goal to exit beta? I’m assuming no. “It’s ready when it’s ready” approach. I’m only asking because my Org currently will likely reject our proposal to use Start (and others) simply because the word “beta” is used....
fair-rose
fair-rose9/5/2025

Can I host my landing page on Framer & everything else in TSS?

In nextjs I could proxy the landing page to a framer-hosted site, and then everything else in my deployed vercel app. Can I do the same with TSS?...
rival-black
rival-black9/5/2025

Guaranteed way to use loader only from server

So, I have the following situation: we have a c# backend that provides API endpoints protected by access tokens, and custom oidc provider (all inhouse services) On the tanstack start side, better-auth is handling the auth and access token acquiring and kubb is generating fetch client for c# services from openAPI schema. ...
sensitive-blue
sensitive-blue9/5/2025

"You appear to have multiple instances of Solid. This can lead to unexpected behavior."

Im using react with tanstack start. what could be the reason for this error
continuing-cyan
continuing-cyan9/4/2025

The Workers runtime canceled this request because it detected that your Worker's code had hung

I deployed my web application to Cloudflare, and I noticed I keep getting this error occasionally when I start reloading the page:
The Workers runtime canceled this request because it detected that your Worker's code had hung and would never generate a response. Refer to: https://developers.cloudflare.com/workers/observability/errors/
The Workers runtime canceled this request because it detected that your Worker's code had hung and would never generate a response. Refer to: https://developers.cloudflare.com/workers/observability/errors/
...
adverse-sapphire
adverse-sapphire9/4/2025

preloading + persist plugin

Hi guys I’ve been exploring TanStack Start and ran into an issue when trying to use the tanstack query persist plugin. When I use useQuery like this, it works as expected — the query is persisted, and if the data already exists, it doesn’t re-fetch from the API. ```typescript...
genetic-orange
genetic-orange9/4/2025

How can i implement gzip compression on all my API routes?

Hello, I have an API endpoint which serves GeoJSON data - which can heavily benefit from GZIP compression. How do I enable this in my endpoint? I cant seem to find anything in the documentation Thanks in advance....
metropolitan-bronze
metropolitan-bronze9/4/2025

How to configure the port of the production server?

Here is the vite config ```typescript export default defineConfig({ server: {...
other-emerald
other-emerald9/3/2025

How do you handle active route states?

What are the best practice to check which route is active?
automatic-azure
automatic-azure9/3/2025

serverEntry.default is not a function

Hi everyone. I am trying to migrate my tanstack router app into tanstack start. I followed the documentation but I am still getting this error. Any ideas? TypeError: serverEntry.default is not a function at file:///....../myapp/nodemodules/.pnpm/@tanstack+start-plugin-core@1.131.32@tanstack+react-router@1.115.2_react-dom@19.1.0_react@19_ss3yohtdo4bcan2dydf4vyfp74/node_modules/@tanstack/start-plugin-core/dist/esm/dev-server-plugin/plugin.js:47:58...
vicious-gold
vicious-gold9/2/2025

notFound issues

when i add a defaultNotFoundComponent, i'm not sure if that also renders the contents of __root or not becaue it seems like it partially does; but doesn't render HeadContent resulting in a weird error...
genetic-orange
genetic-orange9/1/2025

Start Deploying AWS Amplify?

Hi, so our team is looking for SSR framework and Tanstack Start is one of options. But company really wants to deploy through AWS infra and curious Tanstack tart can be deployed through AWS Amplify for every Start’s features such SSR, Server Function, etc. If not is there any template or configurable way we can deploy through AWS services without I meed to re-invent the wheel?...
genetic-orange
genetic-orange9/1/2025

Global Middleware not working in prod

Hello, I have global-middleware.ts, with registerGlobalMiddleware at the end. I import ./global-middleware from server.ts (I also tried importing it from router.tsx). The middleware runs fine in development, but not in production (I added log to the middleware functions to check). Anyone else experience this?
conscious-sapphire
conscious-sapphire9/1/2025

"Invalid Hook Call" with React code in third-party package, same code in Repo works

I have created a minimal reproduction here: https://github.com/phryneas/reproduction-vite-invalid-hook-call-from-package Essentially, once I declare a component ```...
unwilling-turquoise
unwilling-turquoise9/1/2025

Understanding onDynamic

When does onDynamic get called? In the examples that I’ve seen it looks almost the same as onChange. It says that it allows you to dynamically change what validator is used, but I can’t seem to figure out when it changes your validator to use the one written in onDynamic.
conscious-sapphire
conscious-sapphire9/1/2025

Does Start let one modify codeSplittingOptions in the router config?

Our app has > 100 routes and hundreds of components. It seems like the default behavior of Start's code-splitting leads to hundreds of requests during route loading. I'm curious to try different options or if they're intentionally not available then to try a recommended approach