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

conscious-sapphire
conscious-sapphire4/28/2025

Amplify Authentication

Hej all. I have a question regarding Tanstack Start and AWS Amplify authentication. We was using NextJS and had the authentication working but trying to move over to tanstack start i cant seem to get the user data after i login. I am not using the aws/ui Authenticator component
deep-jade
deep-jade4/28/2025

PostHog on Tanstack Start in a GDPR compliant fashion?

Does somebody have a reference for implementing PostHog in a compliant way with TanStack Start?
correct-apricot
correct-apricot4/28/2025

Is there a smart way to cache the secure cookie session client-side?

I setup a DYI Auth using an existing API. I fetch the session from the cookies on the root's beforeLoad context and that works fine. It handles login & logout correctly and easily. You can preview how I did it here: https://codesandbox.io/p/devbox/distracted-cohen-h89lrq Now, I noticed that this introduced a lot of HTTP requests. Everytime a route is preloaded or loaded, a request to the fetchSession's serverFn is made to get a fresh session....
sensitive-blue
sensitive-blue4/28/2025

Building for Cloudflare and getting "Readable" is not exported by "__vite-browser-external"

Hey everyone ! I've been building a project with Start for the past few weeks without thinking too much into deployment. Today I've been trying to build a first version to host on Cloudflare but unfortunately I can't pass the build step locally. I followed the documentation and then proceed to run npm run build which gives me the output attached in the message. ```...
ratty-blush
ratty-blush4/28/2025

Virtual file routes

Are virtual file routes available in Start as of now? if not, is support planned?
noble-gold
noble-gold4/28/2025

How to add CORS headers to API responses?

Specifically I'm looking to use the better-auth API inside my server and it is missing the header to allow credentials. I'm not sure how the other CORS headers get added to the response. It looks like the OPTIONS requests don't make it to the API handler. Similar Github issue: https://github.com/TanStack/router/issues/4043...
environmental-rose
environmental-rose4/27/2025

Type-safe environment variables?

Hey folks, has anyone had experience with setting up something like T3 Env (https://env.t3.gg/docs/introduction) for validating env vars at the start of the server and thereafter accessing them from an object where they're guaranteed to exist? The part puzzling me is differentiating between server and client – i.e. some variables will only be available in server context on purpose (because they're secrets).
continuing-cyan
continuing-cyan4/27/2025

How do I properly configure for Offline PWA and no SSR default?

Does Tanstack Start support offline use? I would like for the app to load all the client code at first load, don't need SSR, but would like to retain Start's other features. Extra detail: I have an app that I'm wanting to convert that uses Replicache for offline functionality for some pages. Basically, the app needs to work offline for those select routes, but the others can just use cached data or route to an "You're offline page". I have no need for SSR, outside of potentially for our auth (BetterAuth). The app needs to be installable so the user can start it while offline and use the offline portions of the app....
environmental-rose
environmental-rose4/27/2025

TRPC procedures like API

I really like the procedures in TRPC where you can create different procedures like adminProcedure, userProcedure, publicProcedure. But I think with server functions I have to use the .middleware([adminMiddleware]) in each server function, which is kind of a boilerplate! Are there anything similar to TRPC procedures planned for Tanstack Start?
unwilling-turquoise
unwilling-turquoise4/27/2025

cant throw redirects?

idk if this belongs in router questions but i cant throw redirects at all!! it just shows the errors in the console but without doing anything.. ```ts import { createFileRoute, redirect } from "@tanstack/react-router"; import { createServerFn } from "@tanstack/react-start"; export const Route = createFileRoute("/test")({...
No description
flat-fuchsia
flat-fuchsia4/26/2025

Dark mode color scheme

Hi ! I saw this https://github.com/sergiodxa/react-router-color-scheme-example on x. I was using the script trick to handle flash of uncorrect theme. The solution that I use is with react query https://github.com/KirdesMF/tss-color-scheme, but I don't know if this can be simplified or if you have other solution to that. Actually it works as expected. Thanks...
harsh-harlequin
harsh-harlequin4/26/2025

Best Practice to build Shadcn Dashboards (Performance, Lazy Loading)

Hi, I did some tests with the vanilla Shadcn dashboard and the TanStack starter. What can be done so that the client reacts immediately and loads the rest lazily to improve the initial load performance? It currently takes about 5 seconds (loading around 90 MB) before the UI becomes responsive....
No description
harsh-harlequin
harsh-harlequin4/25/2025

Tailwind V4 + Tanstack Starter with Tailwind Vite instead of postcss

Any idea why we still need a postcss.config.ts for tanstack starter even I have added the vite.config.ts. Since we're using @tailwind/vite the postcss could be ignored. vite.configs.ts...
sensitive-blue
sensitive-blue4/25/2025

Using Start with shadcn and tailwindv3

Using start with tailwindv3 and shadcn is not working. I get an error
[plugin:vite:css] [postcss] typeMap[type] is not a function
[plugin:vite:css] [postcss] typeMap[type] is not a function
is this a react 19 issue?...
continuing-cyan
continuing-cyan4/24/2025

SolidQueryDevtools doesn't load... renders as toString Promise

When adding SolidQueryDevtools to my RootComponent, it just renders out [object Promise]. The instructions were simple enough... but didn't work. ```tsx ... import { SolidQueryDevtools } from "@tanstack/solid-query-devtools";...
genetic-orange
genetic-orange4/24/2025

Tanstack Start Replit Agent?

Has anyone tried using tanstack Start with Replit Agent? Was thinking about giving it a go but wondering if there is any pointers prior to my attempt
absent-sapphire
absent-sapphire4/24/2025

Does Start support Router's Virtual File Routing as well?

It seems like it might but I'm unsure
mute-gold
mute-gold4/24/2025

Too many redirects

i recently hosted my side project on Netlify. I used TanstackStart, Convex and Clerk to build it . I keep getting this error after i attempt to sign up or sign in and its really disturbing me. I have cleared all the cookies on my browser but the issue persists. The url to the website is https://chikitube.netlify.app/ ...
No description
harsh-harlequin
harsh-harlequin4/24/2025

Will Tanstack Start support a custom server?

I'm hoping someone can answer the question here: https://github.com/TanStack/router/discussions/3777 Will the move away from Vinxi open up a world where we can use a custom server with Start? Is that in the cards at all?...