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
Cannot find module '~/components/DefaultCatchBoundary'
dev...
How to do SSR with graphql
Best way to handle a user generated page
Dynamic search params without reloadDocument
Once we have these deps in place, the route will always reload when the deps change.
...HydrationError on globalCss import
http2 and tanstack start
Lots of trouble around the Authentication with start
useSession
in the router and propagate the authentication state in the router context.
As the router need to work in the server for first rendering, all typicals way to provide authentication (using local storage and /or a react AuthProvider) are not supported.
And the only way have several flaws:...tRPC does not have headers data when refreshing.
`app.config.ts`: The inferred type of 'default' cannot be named without a reference to ...
The inferred type of 'default' cannot be named without a reference to '.pnpm/vinxi@0.5.3_@types+node@22.12.0_db0@0.3.2_ioredis@5.6.1_jiti@2.4.2_lightningcss@1.29.2_terser_25eelrexirydiqaxrytk4q6kd4/node_modules/vinxi'. This is likely not portable. A type annotation is necessary.ts(2742)
The inferred type of 'default' cannot be named without a reference to '.pnpm/vinxi@0.5.3_@types+node@22.12.0_db0@0.3.2_ioredis@5.6.1_jiti@2.4.2_lightningcss@1.29.2_terser_25eelrexirydiqaxrytk4q6kd4/node_modules/vinxi'. This is likely not portable. A type annotation is necessary.ts(2742)

Skip global middleware for certain serverFns?
`__filename is not defined` (Cloudflare Workers)
{"stack":"ReferenceError: __filename is not defined\n at import_meta_url.js (http://localhost:3000/_build/node_modules/.vinxi/cache/client/deps/wrangler.js?v=c86f4689:2959:55)\n at __init (http://localhost:3000/_build/node_modules/.vinxi/cache/client/deps/wrangler.js?v=c86f4689:2929:60)\n at ../../node_modules/.pnpm/wrangler@4.14.1/node_modules/wrangler/wrangler-dist/cli.js (http://localhost:3000/_build/node_modules/.vinxi/cache/client/deps/wrangler.js?v=c86f4689:80439:5)\n at __require2 (http://localhost:3000/_build/node_modules/.vinxi/cache/client/deps/chunk-OL46QLBJ.js?v=c86f4689:21:50)\n at http://localhost:3000/_build/node_modules/.vinxi/cache/client/deps/wrangler.js?v=c86f4689:155875:16","message":"__filename is not defined"}
{"stack":"ReferenceError: __filename is not defined\n at import_meta_url.js (http://localhost:3000/_build/node_modules/.vinxi/cache/client/deps/wrangler.js?v=c86f4689:2959:55)\n at __init (http://localhost:3000/_build/node_modules/.vinxi/cache/client/deps/wrangler.js?v=c86f4689:2929:60)\n at ../../node_modules/.pnpm/wrangler@4.14.1/node_modules/wrangler/wrangler-dist/cli.js (http://localhost:3000/_build/node_modules/.vinxi/cache/client/deps/wrangler.js?v=c86f4689:80439:5)\n at __require2 (http://localhost:3000/_build/node_modules/.vinxi/cache/client/deps/chunk-OL46QLBJ.js?v=c86f4689:21:50)\n at http://localhost:3000/_build/node_modules/.vinxi/cache/client/deps/wrangler.js?v=c86f4689:155875:16","message":"__filename is not defined"}
ensureQueryData on loader breaks page.
TRPCClientError: Unexpected token '<', "<!DOCTYPE html>" is not valid JSON
The loader uses ensureQueryData to use it as the page title:
...
Is beforeLoad expected to run on the server and the client?
Accessing request object in the Route.loader
getHeader
but that causes a build error....Routes conflicting when using "@tanstack/react-start/api"
/api/$workspaceSlug/$projectSlug
And a static endpoint - /api/ai/chat
When I make a request to /api/ai/chat
, the request is going to /api/$workspaceSlug/$projectSlug
. It thinks* ai
is the workspace slug and chat
is the project slug, so it ends up returning the wrong response.
...Vinxi & Nitro
serverFn signal is always aborted on POST?
How to handle POST requests to component routes (non-api) and read the payload (form data, json)
Sharing data between `ws` implementation and `createServerFn` util
createServerFn
. My goal is to have the ability to send a websocket message from a server function. The way I've tried to do this, is to create a Map()
instance, in which I place websocket "peers", and then I'm attemting to retreive the appropriate peer from the server-side function. However, the Map isn't shared, it seems like the file where createServerFn
is located, is loaded dynamically by Start, which means the Map is always a new instance rather than being the existing one.
TL;DR on code:
- src/lib/peerManager.ts
exports a singleton export const peerManager = new PeerManager();
- src/ws.tsx
imports the singleton, handles websocket, works great...path error with static server function.