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 are Server function URL's determined, will it break when changing name or location?
Broken server function type safety?
Issues calling server/ts function in API route
functions
file alongside server functions. This doesn't appear to be an issue when calling server functions not in API routes
```bash
Error importing route file: Error: Invariant failed: createServerFn must be called with a function that is marked with the 'use server' pragma. Are you using the @tanstack/start-vite-plugin ?
at invariant (file:///Users/am/Coding/code/node_modules/tiny-invariant/dist/esm/tiny-invariant.js:12:11)...Vercel deployment: routes-manifest.json couldn't be found
Error: The file "<MY_PROJECT_PATH>/.vercel/output/routes-manifest.json" couldn't be found. This is often caused by a misconfiguration in your project.
Error: The file "<MY_PROJECT_PATH>/.vercel/output/routes-manifest.json" couldn't be found. This is often caused by a misconfiguration in your project.
Migrating from Next
unstable_cache
, "use cache"
or fetch()
caching? currently these use the vercel data cache, so i'd like to continue this without needing a separate redis instance.
i have four usages:
a) database req: not critical, revalidates every 15 minutes...Change `<html>` `lang` attribute in subroute
<html>
lang
attribute in a nested route (e.g. /$lang
) based on URL params?
Thanks...How to run code when the server starts up?
File API Routes Not Working?
createServerFn in monorepo?
useMatches re-renders twice on server with different amount of matches
match.fullPath
and then matches.length
```...Do I have to use .lazy to code split in tanstack/start or does it do it automatically?
CSS modules, flush of unstyled content
Blank page after navigating
HTML didn't match the client
Cron / Background jobs / Tasks
How to exclude a component/function/code from SSR?
react-plotly
, which throws the error "Uncaught ReferenceError: self is not defined" during SSR.
Is there any way to exclude a component from SSR?
I've tried an import()
with Supsense
, which fixes the "self is not defined" error, but create a Hydration mismatch....How to ensure module is imported everywhere (server, client, server functions)
importExtensions
is executed in all contexts.
So far I only managed to make it work by importing it in client.tsx, ssr.tsx, and router.tsx,
and in router.tsx I also had to make sure to execute it via a global middleware. Is there a simpler approach?
router.tsx:...Run Loader on Client
If the loader is called from the server I close context about the active user....