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
working with validator and zod in Server Function
validateClient
and it seems to let my code work, the zod error is thrown to the client, but I am getting a type error?
```typescript
export const loginFn = createServerFn({ method: 'POST', validateClient: true })
.validator(loginSchema)...Best place to attach Auth token to requests?
Development and deployment on Cloudflare (Pages)
vinxi dev
)
...Anyone has a working turborepo setup with Start. I can't do that.
In middleware, how to catch exception and return custom error code with body
setResponseStatus(422);
return { result: { error: "Validation error", status: 422 } } as any;
setResponseStatus(422);
return { result: { error: "Validation error", status: 422 } } as any;
invalidate `ensureQueryData` used in `beforeLoad`
ensureQueryData
data in beforeLoad
so that any page that consumes the data via Route.useRouteContext
can be updated?
__root.tsx
```ts
export const Route = createRootRouteWithContext<RouterContext>()({...Errors while deploying on Vercel.
How to debug in VSCode
.vscode\launch.json
):
```json
{
"version": "0.2.0",
"configurations": [...`registerGlobalMiddleware` doesn't seem to work
registerGlobalMiddleware
at various places, e.g. router.tsx, client.tsx, sr.tsx, root.tsx, index.tsx etc., but the middleware wasn't called. However, the middleware works when put in index.tsx
locally:
```typescript
const updateCount = createServerFn({ method: 'POST' })
.middleware([loggingMiddleware])...Style (Tailwind 4.0 beta) not loading in prod.
throw errors in createServerFn and catch it
returning `Response` in `createServerFn`, is it supported?
Active link highlighting not working.

setup highlight.io
Run vitest to test API routes
vitest.config.ts
file using various plugins (tanstack-router, tanstack-start-server-fn) but none proved useful.
Digging a bit, I suppose it lies in the abstraction provided by TanStack Start's defineConfig
....Server function isn't called
login()
is only called, when the response is used afterwards (like in console.log(response)
). But when I remove console.log(response)
, login()
is not called anymore. Why is that?
```tsx
import { createFileRoute } from '@tanstack/react-router'
import { createServerFn } from '@tanstack/start'...Darkmode/Themes with Start?
SSR and (Framer) Motion
Importing lodash causes error
How to use a provider like a ThemeProvider