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

stormy-gold
stormy-gold7/7/2025

Does my auth provider need to integrate directly with DB of choice or just Start in order to work?

This feels like a stupid question. I’m building an app with TanStack Start and want to use Convex as DB. Let’s say I’m planning on using auth ProviderX. Does the auth provider have to also integrate directly with Convex or does it only need to interact with TS Start? If a user is authenticated on an app level do they also need to be authenticated on a DB level to run queries that are a part of the page loaders? When I was playing with Remix/RR7 last year, the access to a DB, even for checking for valid users, was all based on page loaders, and then a DB query that just used a user/pass from the .env, not something that needed to check with the database on its own if it had permission to read/write. Live SSR vs Client side I guess? Does this question make sense?...
ratty-blush
ratty-blush7/7/2025

Docker image size with TanStack Start , pnpm

Hey folks 👋 I’m using TanStack Start with pnpm and Docker, and I’m noticing that my production Docker image is quite large 710 MB. Has anyone else experienced this? Is that size expected for a typical TanStack Start app, or might I be doing something wrong?
foreign-sapphire
foreign-sapphire7/6/2025

Not Having DELETE / PUT breaks integrations with existing RESTful APIs

Context: I have an SSR server and client using tanstack start. I can define server functions as either get / post. Right now these server functions essentially wrap another backend API. Problem Unless server functions can make fully restful requests (POST, PUT, DELETE, GET), then I cannot fully integrate with an existing restful API that utilizes those methods....
modern-teal
modern-teal7/6/2025

`node` property not available on event param in defineEventHandler

Using the latest version of TanStack Start (1.125.3), I am trying to work with the event from defineEventHandler, but there is no node property available, only request (while the H3Event<EventHandlerRequest> type has node defined as property), this looks like a bug or there seems to be a type mismatch. Does anyone know what happened?
sunny-green
sunny-green7/6/2025

Link Options exact: true does not accept searchParams

Hi Guys I am not sure if I overlooked something, but I have following structure ```...
like-gold
like-gold7/5/2025

Running `beforeLoad`/loader functions on client only (SPA mode)

I have an authentication provider that requires authentication on the client side only. I would like to take advantage of preloading, as well as auth checks via beforeLoad, but even with ssr: false and SPA mode enabled, beforeLoad and loader functions both seem to run. This causes issues because the user isn't authenticated yet. Any way around this?...
automatic-azure
automatic-azure7/5/2025

Clerk basic example does not show clerk signin modal on hard reload

Using the bare react start-clerk-basic example, when doing a hard load of the /posts route (or any route within the authed layout), the default clerk SignIn component does not show up. It does show as expected when navigating from home to /posts. Interestingly the "Not authenticated" error in the beforeLoad is correctly thrown, and the error component correctly checks that path. But the clerk modal does not show up. Any ideas?...
fascinating-indigo
fascinating-indigo7/4/2025

Build error using Start with Cloudflare

```bash [nitro 2:43:38 AM] ERROR Error: Cannot resolve "tanstack-start-route-tree:v" from "/Users/zeeshan/src/dashboard/node_modules/.pnpm/@tanstack+start-server-core@1.124.0/node_modules/@tanstack/start-server-core/dist/esm/loadVirtualModule.js" and externals are not allowed! undefined...
fascinating-indigo
fascinating-indigo7/4/2025

Slow server functions on Vercel

I deployed tanstack-start-example-supabase-basic to supabase and I am surprised by the execution time of the server functions. logoutFn is 74ms on my local build and 1.06s on Vercel....
No description
rising-crimson
rising-crimson7/4/2025

How can I propagate user state across the backend and frontend?

I’m building an app using TanStack Start and Better-Auth. I want to fetch and access my user state or information during the beforeLoad or loader lifecycle hooks. I’ve seen examples where people put their user fetching logic in the beforeLoad of the __root layout, but when I do that, my page fails to load. Is this the correct approach to handle user state fetching? If not, what is the recommended way to propagate user state across both backend and frontend?...
correct-apricot
correct-apricot7/4/2025

Remove Error message from ServerFn

Hi! I want to make sure that server fns do not leak some information to the client through error messages. Is there a way to globally register a middleware that would handle this?
evident-indigo
evident-indigo7/4/2025

Optimized Deps Warning: FloatingTanStackRouterDevtools

Seeing this warning in the logs after upgrading to the new main branch: The file does not exist at "/Users/<REDACTED>/node_modules/.vite/deps/FloatingTanStackRouterDevtools-TM7R3YU7.js?v=50c4cb9a" which is in the optimize deps directory. The dependency might be incompatible with the dep optimizer. Try adding it to optimizeDeps.exclude....
evident-indigo
evident-indigo7/4/2025

[RESOLVED] Hydration Issue with Clerk, TSS, & Convex

Morning team, I thought this issue would have been resolved upgrading to the new main branch, but seeing this hydration issue with Clerk, TSS, and Convex. Any thoughts on how I can resolve this? ```...
absent-sapphire
absent-sapphire7/4/2025

Migrating to tanstack start

Hi all, Last Monday we launched our SPA with tanstack router + all tanstack suite to prod. We faced SEO issues, basically our SPA is an empty blank page for google crawlers for all the pages. I've tried for 5 days improve the performance etc, nothing works. I think this is because it's highly coupled to our headless CMS. These are the "crazy things" we do in our SPA fetching data from our CMS - We fetch feature flags to turn on/off some features. - We fetch seo meta data for each page to inject it in the header of the document ...
rival-black
rival-black7/4/2025

Data loader called twice

What might be causing the data loader to be called twice during SSR in the solidjs example? For instance on the /users route https://tanstack.com/start/latest/docs/framework/solid/examples/start-basic React example does not seem to have this behavior....
rising-crimson
rising-crimson7/4/2025

Client and Server code mixing and I don't know how

After migrating from prisma to drizzle I was forced to import "server-only" in my db file: ``` import "server-only"; import { drizzle } from "drizzle-orm/neon-http"; import * as schema from "./schema";...
eastern-cyan
eastern-cyan7/3/2025

Throwing redirect from server functions throwing an error in console and not redirecting

Hey folks, I'm using tanstack start + solidjs. I'm trying to throw a redirect from a server function and it's throwing an error on the console. ```javascript // src/lib/auth/actions export const login = createServerFn().handler(async () => {...
No description
fair-rose
fair-rose7/3/2025

server env variables

Hey guys, there have been a lot of changes to vinxi, nitro and I am wondering as of the latest tanstack start version how we should go about injecting our environment variables server side. I can pass them through to vite just fine, using VITE_ prefix but when it comes to getting my server side env variables, I cannot find a solution. It seems to work in dev just fine, but not in production...
robust-apricot
robust-apricot7/2/2025

Create CloudFlare Queue Consumers or DOs?

I’m experimenting with Start (for React) on CloudFlare but i’m not seeing a way to add to my CR worker if i want to add a durable object or a queue consumer. I think react router’s solution is to give you a “createRequestHandler” function (https://github.com/remix-run/react-router-templates/blob/main/cloudflare/workers/app.ts) that can be used in your custom worker function (along with things like creating durable objects or whatever). Is there a tanstack start (or nitro or vinxi) equivalent?...
correct-apricot
correct-apricot7/2/2025

Vercel + Tanstack + MUI

Hey guys has anybody had any problems trying to use Vercel with tanstack/start and router? I keep getting the following error from the build "H3Error: EMFILE: too many open files," and it's never the same "open file" it always outputs different files ...