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
Reading file in server function
src/data
directory are not copied into the build. What's the correct way to read a file with a server function? And where should the file be placed?
```
import { createServerFn } from '@tanstack/react-start';
import { readFile } from 'node:fs/promises';...Differentiate between server and client on function level.
Can I create a form using loop from zod schemas automatically in Tanstack form?
Best Practices: tRPC vs. Server Actions/Loaders with TanStack Start, Drizzle, Neon, and Better Auth
Failed to resolve dependency: @tanstack/react-store
API routes not working when deployed to netlify

throwing an error with pendingComponent set?
pendingComponent
and catch it in an error boundary without pendingComponent
intercepting it?Rerun root route's beforeLoad when calling router.invalidate()?
context.user
is no longer null. As for React Start, it looks like beforeLoad is exclusively ran on the server, even with ssr: "data-only"
. This means once the page is loaded, all context from the root route is "stuck" until the page is hard refreshed, not even router.invalidate()
can make beforeLoad run.How can I set HTTP response code during SSR?
When building app i get "... set "customViteReactPlugin: true" - where do i do this?
Server function and "internal" functions.
netlify deploy error
How to prerender enabled but didn't get stuck?
I have problem running my start in a new computer

Environment Variables Issue with TanStack Start v1.129.7
v1.129.7
) and noticed it no longer uses Vinxi.
I'm having problems accessing environment variables in server-side code during pnpm run dev
. Can anyone point me to resources for solving or diagnosing this issue?
I've already checked the Vite env guide, but nothing seems amiss....Server functions or which feature??
$.tsx
this file catches everything and fetch the content from our headless CMS, for example: /about-us
in the browser will trigger an API call for the slug about-us
.
2) The cms API response is basically an array of objects where each object has a type
key to know which ReactJS component render, for example columns, text, banner, and so on.
3) One of these "cms components" is a FAQs section, around 80% of my pages have this component and I need to run some custom logic to enable/disable this query that's why my reactjs component uses useQuery
instead of useSuspenseQuery
, because not all pages need this component and even if they have it, not all of them will run the query.
 ...
useServerFn
useServerFn
a hard requirement when using server function in react-query?
docs put it like this:
```
const getTime = useServerFn(getServerTime)...No TS checks on the Link component

ReferenceError: module is not defined
import {readFile} from 'node:fs/promises';
but this does not:...