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

correct-apricot
correct-apricot4/19/2025

Is there support for SSE and/or web sockets?

Is there support for SSE and/or web sockets? If not is it planned?
foreign-sapphire
foreign-sapphire4/19/2025

Issue with how to expose localhost to the web?

I am using lt --port 3000. `` Blocked request. This host ("pretty-pillows-tease.loca.lt") is not allowed. To allow this host, add "pretty-pillows-tease.loca.lt" to server.allowedHosts` in vite.config.js....
flat-fuchsia
flat-fuchsia4/19/2025

DB Transaction, AsyncLocalStorage and Middleware

Hello, I'm trying to add an abstraction for db transaction using Drizzle-ORM. For this I want to create a transaction and put it in the AsyncLocalStorage of Node.js, so that I can retrieve it using a function in my repositories without passing the transaction everywhere. Can I do this sort of things with the middleware ?...
quickest-silver
quickest-silver4/19/2025

Trouble with understanding useSession function from @tanstack/react-start-server

I am trying to implement auth with tanstack-start with react query. I followed basic auth starter example from the docs but I am getting this error: ``` Error adding information: TypeError: Cannot read properties of undefined (reading 'config') at @tanstack_react-start_server.js?v=a2b44449:18409:34 at useAppSession (session.ts:11:19)...
mere-teal
mere-teal4/18/2025

How to use Tanstack Start with Cloudflare Durable Objects?

Is it possible to define durable objects in wrangler configuration and use the same worker deployed for both start and durable object?
like-gold
like-gold4/18/2025

Server Side Cache Rules

I noticed there is some initial support for static generated server function replies which caches the result on build, would be nice to have control to have some serverside calls cached for a time period then rerun, and was wondering if was on the roadmap....
wise-white
wise-white4/18/2025

ISR and data fetching

Hi! I noticed on the TanStack website that you’ve implemented something similar to ISR (Incremental Static Regeneration) using CDN headers, like this: headers: (ctx) => { return {...
jolly-crimson
jolly-crimson4/18/2025

hydration issues with ssr handler

Hi there, I am trying to create a better-auth ssr handler similar to clerk's But I am having issues hydrating the user session and query client... at this time I do the following:...
conscious-sapphire
conscious-sapphire4/17/2025

How can I desable ssr logs on the browser console?

Injected From Server: TSR_SSR.initMatch({"id":"root","__beforeLoadContext":"{"session":{"$undefined":0},"user":{"$undefined":0}}","loaderData":"{"$undefined":0}","error":"{"$undefined":0}","extracted":null,"updatedAt":1744898145263,"status":"success"})...
inland-turquoise
inland-turquoise4/17/2025

How to use Socket.IO with Tanstack Start?

I need to use Socket.io as the default WS provided by CrossWS is too simple for my use case. Is there a way to integrate socket.io with Tanstack Start?
quickest-silver
quickest-silver4/17/2025

Remix vs Tanstack start

I've been using Remix for a while and really appreciate its loader pattern, but I've found actions/fetchers somewhat awkward to work with. I tend to prefer using React Query for updates. I'm interested in learning more about the differences between TanStack Start and Remix/React Router. Specifically: 1. How does the data fetching model in TanStack Start compare to Remix loaders?...
rival-black
rival-black4/17/2025

How do you execute a function/middleware only in a server-side context for a given route?

I am trying to implement Privy's server-side middeware setup, which has a NextJS middleware example of how to set up a middleware with a matcher for certain routes. I want to replicate this functionality either in a server function or server middleware, but I am not quite sure how to do this. Since beforeLoad and loader can execute on the server or the client, I only want the functionality in this example to execute on the serve...
deep-jade
deep-jade4/16/2025

Does Tanstack Start have an llms.text?

I want to use LLM's more effectively and this is quite good way to do it. For instance: - https://sdk.vercel.ai/llms.txt...
yelping-magenta
yelping-magenta4/16/2025

How to monitor a Tanstack Start app

Hey guys, What would be the recommandation to monitor a tanstack start app ? I have been using prom-client and grafana with nextjs and node. That was working very well, I could set up alerts and monitor my apps. ...
like-gold
like-gold4/16/2025

Tanstack Start app with css (scss) modules with troubles using defaultNotFoundComponent

Hello! I'm trying out tanstack start for the first time, following a few of the guides and examples. I'm having quite a weird issue now, and it's possibly from misconfiguration, but I'll let you ask before I post to much nonsense about configuration. ...
quickest-silver
quickest-silver4/16/2025

Code Splitting Causing ReferenceError

I'm not quite sure whats going on here? Is there a way to turn off the splitting
No description
other-emerald
other-emerald4/15/2025

How do I pass context to the router in TanStack Start?

Hey ya'll! Quick question about TanStack Start - Is it possible to pass context to the router? With TanStack Router, I can use RouterProvider to pass an AuthContext, for example, but in TanStack Start I have to use StartClient which doesn't give me a way to "provide" any context. It feels like I'm missing some key understanding about how the full stack version of TanStack differs from the client-first version......
like-gold
like-gold4/15/2025

I don't understand env variables in Vite

Everything works on prod but the moment I pnpm build && pnpm start locally I get this error. ``` [request error] [unhandled] [GET] http://localhost:3000/_server/src_routes_root_tsx--getUser_createServerFn_handler?payload=%7B%22data%22%3A%7B%22%24undefined%22%3A0%7D%2C%22context%22%3A%7B%7D%7D&createServerFn LibsqlError: URL_INVALID: The URL 'undefined' is not in a valid format at parseUri (file:///home/barsi/dev/senatoriables/.output/server/node_modules/@libsql/core/lib-esm/uri.js:9:15)...
deep-jade
deep-jade4/15/2025

How to check if form action (as server function) is running?

When setting a server function as action attribute on form-element, is there any way to determine if the action is currently running (like with useActionState from React)?