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
Dehydrating/hydrating queryClient
ssr: "data-only"
?
Currently I don't do any hydration. This means I'm fetching data first on the server, then I throw it all away and fetch everything again on the client, completely negating any benefits of running the loader on the server.
I've read some docs:...Server-side vs client-side validation
Vercel preset not deploying automatically
vite build
outputs .tanstack
.nitro
.vercel
with target: "vercel"
on the tanstack vite plugin. However when I deploy to vercel, with default output path
in build settings, these don't seem to be getting picked up correctly and the old vercel 404 NOT FOUND white page of death shows up. Any ideas why? Should the build options output point to a particular one of those build dirs or is there something in the config I'm missing?Redirect question
href
, but the thing is my app is hosted as an iframe and this does not work.
Basically I need something like the open function so I can pass in _top
in the 2nd param like so:
open('https://...', '_top')
...Server Start or Init functions
set the base url for serverFns?
lambda.<mydomain>
or something like this i'm deploying with the aws-lamda preset via sst, and it looks like my serverFn lambdas aren't picking up on the domain i've setCannot find module @rollup/rollup-win32-ia32-msvc with get started guide
Showing pending state when loader data is reloading
loader
is happening behind the scenes so I can show the user that the UI is about to change?...Can't access a page element in an Outlet wrapper when it mounts when ssr: false
Error in renderToPipeableStream: TypeError: jsxDEV is not a function
Only render component on the client?
Img onLoad not firing on initial page load when ssr: true
Does tanstack uses nodeJs runtime for everything server?
Global middleware for JWT token refresh?
How to access validator in createServerFileRoute?
Receiving a file in a server function
.validator((data: unknown) => schema.parse(data))
.validator((data: unknown) => schema.parse(data))
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.