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

absent-sapphire
absent-sapphire4/24/2025

Next.js > TSR codemod

Has anyone attempted this yet?
foreign-sapphire
foreign-sapphire4/23/2025

how come Route context becomes serialized objects on hydration

I notice in my component that class instances I've added to a route's context via beforeLoad are no longer the instances on initial render on the client. It seems odd. I expect that from the output of loader but not for beforeLoad. Is my assumption incorrect that the merged values into the context via beforeLoad would be the actual objects? ```...
other-emerald
other-emerald4/23/2025

Lazy loading routes with "virtual file routes"

I am trying to make one of my routes component lazy loaded but don't know what to follow from the docs https://tanstack.com/router/latest/docs/framework/react/guide/code-splitting like if I have route with loader what should follow from the docs ?...
stormy-gold
stormy-gold4/23/2025

Running a reverse proxy for the dev server, I need to configure HMR options which are not available

Hi, all. I know this will surely be fixed once vinxi is removed from the project and we can configure vite directly, but was wondering if there might be a workaround someone is aware of. My issue is I need to point my reverse proxy to specific ports of the dev server including the HMR port and client port. I had this working perfectly when using Remix+vite, but hit this roadblock when migrating to tanstack/start. This is what I want to achieve: ``` export default defineConfig({...
sensitive-blue
sensitive-blue4/23/2025

How do I make vitest globals work with my Tanstack Start config?

I have an app.config.ts like this: ```TypeScript import { defineConfig } from '@tanstack/react-start/config'; import { PluginOption } from 'vite'; import tsConfigPaths from 'vite-tsconfig-paths';...
other-emerald
other-emerald4/23/2025

Global Middleware not executed

I am trying to use global Middleware for my server functions, and follow the docs and. Create src/global-middleware.ts and add it but not excuted Should I don any further steps ?...
No description
yappiest-sapphire
yappiest-sapphire4/23/2025

How to handle throw redirect() from server functions when using ensureQueryData?

I have a server function defined like this: ```ts export const getCurrentUserFn = createServerFn({ method: "GET" }).handler( async () => { throw redirect({ to: "/" });...
fascinating-indigo
fascinating-indigo4/23/2025

VSCode Intellisense very slow after upgrading TanStack Start?

Hello, I'm working in a monorepo (using pnpm & Turborepo) in which I have two applications using TanStack Start (and a few other applications that don't). I was previously using the TanStack Router & Start versions 1.98.4, but decided to upgrade to the latest 1.117.0....
dependent-tan
dependent-tan4/22/2025

Passing hook result into context w/ Tanstack Start

In Tanstack Router, using a classic SPA setup, you can do this: ```typescript const router = createRouter({ routeTree,...
fair-rose
fair-rose4/22/2025

Loader context missing in production

Hey everyone! I usually don’t reach out for support unless I’ve been running in circles, and at this point, I’ve exhausted my options. I’m running into an issue where some loader data isn’t available in production builds, even though everything works perfectly in development. I’m using the latest version of Start along with BetterAuth for authentication....
metropolitan-bronze
metropolitan-bronze4/22/2025

Is it possible to build to './dist' instead of './output'?

I am using tanstack-start/solid and tried to use 'vite.build.outdir' in app.config.ts but I get build errors.
xenial-black
xenial-black4/22/2025

Solidstart + TanStack/query error prefetch

Hello, I'm writing here because I have a problem with TanstackQuery. I tried to implement it in my Solidstart project. But I get this error every time:  (index):347 Uncaught (in promise) Error: experimental_prefetchInRender feature flag is not enabled Here is an example of my implementation :...
rising-crimson
rising-crimson4/22/2025

Example of custom titles per page

I upgraded to the latest version and my custom titles are not working anymore. Are there any good examples of how to do custom "per page" titles using the latest and greatest?
fair-rose
fair-rose4/21/2025

Error on dev server: [vite] (ssr) Error when evaluating SSR module $vinxi/handler/ssr: Cannot spl...

Has anybody seen this error and can point me in the right direction? This occurs when running the dev server vinxi dev. It's a 503 error, for all pages except API routes which work fine. In contrast, my site runs perfectly with bun run build && wrangler pages dev. I have Cloudflare Pages server preset configured as noted in the Tanstack docs....
jolly-crimson
jolly-crimson4/21/2025

Invalidate static server functions

Is there a way to programmatically invalidate static server functions? I want to prerender a page using a static server function and only regenerate it if an item on that page has changed (like NextJS' ISR).
automatic-azure
automatic-azure4/20/2025

De-Vinxi Roadmap

Hey Team, I've been tracking the de-vinxi roadmap for a couple of months now (it's looking amazing) and I was wondering whether or not there was a public roadmap?
magic-amber
magic-amber4/20/2025

How can I configure base html in Tanstack Start (SolidJS) Application ?

I tried to create this root route: ```tsx import { createRootRoute, HeadContent, Outlet } from "@tanstack/solid-router"; import { Scripts } from "@tanstack/solid-start"; ...
other-emerald
other-emerald4/19/2025

Build issue when using virtual file routes in tanstack start

I face an issue when try build my demo app, and get this error what happing is that during build it recreate "routeTree.gen.ts" but it create at as I work with file based not virtual file routes, so it deals with my "routes.ts" as route and show this error, like try to import from "routeTree.gen.ts", as you see I share the error and file config, it's very simple and work locally fine but get this during build...
No description
fascinating-indigo
fascinating-indigo4/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?