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
Need help setting up SEO
document.title
document.title
Safe to use? (Not leaking credentials to client)
Tanstack Stack Production
Tanstack Start
for my upcoming project about the healthcare system, (e.g. medicine inventory system, patient management, supplier management)
.
Can I use Tanstack Start
at the production level now?...Request object - IP address?
Switched to client rendering because the server rendering errored:window is not defined

Lazy loading component: `Error in renderToPipeableStream: ReferenceError: window is not defined`
Programmatically get path in `__root.tsx`?
__root.tsx
. Is this possible?
My goal is to define my canonical URL in my head's links::
```ts
{...
Inference lost in server function
.handler
then the types are correctly inferred for data
.
- If I use the server function .validator
after the middleware then the type of data
is lost.
```typescript...Server seperation
first page nav slow even on purely spa routes
ssr: false
and no network requirements for a route, that the first client navigation will be slightly delayed? is there something going on behind the scenes i'm not accounting for?
i have a couple really basic routes for testing, eg.
```tsx...POST server functions returning 500
TypeError: f.split is not a function
...OAuth implementation
Can I use Virtual file routes with tanstack start ?
Virtual file routes with Tanstack start
How to post multi-part form data in server fn?

tanstack start with powersync error
Headers missing on initial load from server
searchParam validation causing hydration error?
ssr: false
Then, I introduced searchParam validation at the highest layout of my spa tree using ArkType, and i'm getting hydration errors (they go away when i get rid of the arktype validation and just manually provide a cb to validateSearch
I'll provide some more info in the followup post, but i'm not really even sure where to begin debugging this. i can try using it a different validation library and see what happens, but wondering if maybe i'm doing anything obviously wrong before i bother with that...Data Loading with Start
loader
function runs on the client or server. It seems like the answer is both, but I'm sure how to think through the implications of that.
1) We currently use Redux as an API cache & we're hoping to use Tanstack Start as a way to essentially "pre-warm" our Redux store. So the idea is that we use Tanstack loaders to fetch the data on load immediately, then send it straight to Redux & use redux selectors to render our components. It seems like this page covers this usecase (https://tanstack.com/router/latest/docs/framework/react/guide/external-data-loading), but I'm not sure exactly how I would do this with Redux. Do I call dispatch
inside loader
function. Is that going to work if loader
is being run on the server? Is there some kind of afterLoad
function that I can call after loader returns but before the component renders?
2) How can I access request headers inside loader
? I need to access headers to properly load data, but that's only relevant for the initial SSR request. Do I use server functions for this? Ideally I want to be able to say: if this is the initial SSR load, then give me the header, otherwise give me undefined....Anyone using Nuqs with Tanstack Start?