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
How to handle server errors on the client side?
useMutation
? When using tRPC, we could catch errors thrown on the server side on the client side.
I have this RPC:
```typescript...
Does ReactQuerykit gives something extra if I am already using Latest TanStack Query
SPA mode triggers `beforeLoad` throw redirect to login because of matched /_authed layout
beforeLoad
in _authed/route.tsx
runs which in out project throws a redirect to login if there's no session.
It still seems like throwing a redirect is correct in examples but perhaps not for auth.
Could this be something wrong with the prerender?...Global Middleware not working after devinxi?
I've searched and found two GH Issues about global middleware not working (opened in Feb/Mar but have recent comments - e.g., https://github.com/TanStack/router/issues/3869) and at least one Discord post mentioning that global middleware isn't working.
I haven't seen anything concrete though about this being a known/accepted issue across the board. Maybe I just missed an Issue or something. Is it working for some people? Or is it not working at all post-1.121?...
Failed to fetch dynamically imported module

How to handle static audio?
How do I read context in middleware?

Can't create "/credits" route?
routeTree.gen.ts
generator, for some reason, ignores my credits.tsx
page.
Any other name for the .tsx
file seems to work. It's just that credits.tsx
specifically is ignored. Usually creating the file is enough for the route to be added to the routeTree
file....
Client not hydrating. no error message
pino-pretty
) caused it to stop working. This is so difficult to try to figure out that I'm tempted to give up. Besides this I'm getting weird vite build
issues in third party packages too.
Anyone have any ideas for how I can debug this or what causes it? Any help is greatly appreciated....Start + useQuery prefetch question
react-router-with-query
, we'd be able to start a query on the server and continue it on the client with useQuery
, even when the query doesn't fully resolve inside the loader - essentially continue the query where the server left off. I'm wondering if that is actually the case or if that is only possible with useSuspenseQuery
.
In the example below, without any nested components, our query takes two seconds to resolve. If we prefetch inside the loader (without awaiting the prefetch or any subsequent duration), we will get data (1) from useQuery - the query runs fully in the client. When the loader is longer and allows for the query to fully resolve in the server, we get data (2), fetched in the server.
```typescript...Do I need a start, or is just router enough?
Is @tanstack/react-start still relevant? (maybe old setup)

Dexie/localStorage not working at all
I started a new project with Clerk and Convex, target deployment to CF Workers, build errors
Upload file using server actions, the right way
Scripts in Head are added and executed twice (also in basic-example). Should we add an identifier?
src: '/customScript.js'
and also if you define it as children: "(function(){ console.log("Hello")})()"
I think this is a bug, but perhaps there is a need to an identifier to it so tanstack start understands it are the same scripts?...
The best way to manage new builds/deploy
If my server functions are calling other APIs, should I still use them?
Scss not importing
Unit testing routes and middleware
createServerFileRoute
and createMiddleware
?
one example of what i'm trying to do (this code doesn't work):
```ts...