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-blue10/15/2025

typesafe api routes

Is there any future consideration to make first party orpc like thing in tanstack echosystem. I want to utilize my server routes in typesafe way in web application. server functions are good but not scalable to mobile and other integration... it is simple to create such proxy if we have endpoint at 'api/users/invite: post` it should be like api.users.postInvite() but also params, search params and body should be typesafe.......
deep-jade
deep-jade10/15/2025

Weird error when defining server route outside of /routes folder

I have a server route created in ``` // src/routes/api/orders/index.ts import { createOrderApi } from "@/server/orders/api"...
harsh-harlequin
harsh-harlequin10/15/2025

How to access isLoading when using Start+Query in spa mode

Hi guys I need to build a app with Tanstack start & query, the app should have a good experience when using spa mode because maybe I didn't have enough resources to deploy a ssr server. I tried to read the doc https://tanstack.com/router/latest/docs/integrations/query , and I think I need to run the fetch function in route's loader function and return the data. That will be ok if using ssr mode, since the fetch will run on server and then response the rendered page, but when using in spa mode, we can only get a blank page if the loader is not finish, so can we for example access isLoading so that we can create a skeleton when the data fetch is not finished?...
eastern-cyan
eastern-cyan10/15/2025

Optional locale param with wildcard

I have /{$-lang}/$ -like routes. When user access /hello page, how would router know that "hello" is not a lang? Do I need to manually check and somehow redirect to the splat route? I tried to do: ```ts export const Route = createFileRoute("/_main/{-$lang}/")({...
fair-rose
fair-rose10/15/2025

Why scrollToIndex is not working in RTL?

Why scrollToIndex code works for LTR and not for RTL? is it known issue? ``` function ColumnVirtualizerFixed() { const parentRef = React.useRef(null); ...
extended-salmon
extended-salmon10/15/2025

wrangler github action cannot find @tanstack/react-start/server-entry

official cloudflare example uses @tanstack/react-start/server-entry. It builds fine when I deploy it to cloudflare using wrangler CLI. Always fails when I try to do the same using the wrangler github action. Anybody knows why? ``` :rocket: Running Wrangler Commands...
correct-apricot
correct-apricot10/14/2025

Using Nitro with ViteJs (Server side env undefined)

vite.config.js ```jsx import { defineConfig } from 'vite'; import { tanstackStart } from '@tanstack/react-start/plugin/vite'; import tsConfigPaths from 'vite-tsconfig-paths';...
other-emerald
other-emerald10/14/2025

How are we supposed to run the application in non-dev mode?

I'm very confused by this and I've read the getting started docs multiple times. How do I run the tanstack start app in NON-dev mode? In the docs there's a vite build script, but what do we do after we run vite build...? I browsed the dist directory that got created after vite build, and I found a dist/server/server.js, but running node dist/server/server.js doesn't start the server at all....
other-emerald
other-emerald10/14/2025

How to get get RouteNods

I need help with fixing this issue prendring does not prerender pages that are not linked I have a draft pr here ...
stormy-gold
stormy-gold10/14/2025

Local Development issue

What am I doing wrong here?
No description
robust-apricot
robust-apricot10/14/2025

is it possible to have page transitions using the motion library in ts start

im aware of view transition for this but i want to know if i can so this using the motion library and also if i can have ssr on these pages
other-emerald
other-emerald10/14/2025

Has anyone deployed Tanstack Start in a pnpm monorepo on Vercel?

I keep getting a 404 on deploys.. My vite config: ``` import path from 'path'...
No description
sensitive-blue
sensitive-blue10/14/2025

server function named path

Is it possible to define custom paths in server functions to use it in mobile application? server routes are great and provide almost same functionality but server routes are not typesafe when they are called from web client using fetch request......
sensitive-blue
sensitive-blue10/13/2025

Catch error in a global middleware

hii i would like to send any unhandled error to sentry. to do that, i wrote the following code ```ts const sentryMiddleware = createMiddleware().server(async ({ request, next }) => { try {...
deep-jade
deep-jade10/13/2025

TypeORM with TanStack start

I have defined very simple code with TypeORM ``` import { User } from './User' import { createServerOnlyFn } from '@tanstack/react-start' import { AppDataSource } from './AppDataSource'...
rival-black
rival-black10/13/2025

Server.entry is not a function

Hello, all i am wondering if anyone can help with this, i recently updated to latest version and I am getting this now, not sure why. I am using this https://clerk.com/docs/tanstack-react-start/getting-started/quickstart everything was fine before the update, but now it seems to be broken in a few parts. any ideas?
No description
genetic-orange
genetic-orange10/13/2025

performance rsbuild vs tanstack start

Am I right that the bundle size and performance aren’t as good compared to an SPA built with Rsbuild? And with Rsbuild, is it because a lot gets loaded upfront, so I see a white screen for a bit longer?...
national-gold
national-gold10/13/2025

TanStack SPA migration to TanStack Start SSR

Hey guys, we've rewritten our project from SPA React to SSR using TanStack Start, but we're running into a problem where the loader methods of the routes are executed correctly in the local dev environment, but on the cloud instance on our server (Docker), the loader methods are executed, but the result of the API calls is always empty. Does anyone have any idea how we can solve this problem?...
automatic-azure
automatic-azure10/13/2025

Extending createServerFn

Hello! I want to extend createServerFn so that it is run with an authentication middleware like this: ```javascript...
fair-rose
fair-rose10/13/2025

Does TanStack Virtual support native CSS scroll snapping when used in a horizontal scroll?

Does TanStack Virtual (or react-virtual) support native CSS scroll snapping when used in a horizontal scroll? If not, are there any recommended workarounds or best practices for combining virtualization with scroll snapping.