Getting CORS error with tRPC express adapter, locally

trpc version 11.0.0-rc.383 breaks turbo
How to use subscription with bullmq?
React app not inferring trpc client correctly
never
.
What exactly is happening here? I've added a few screenshots of my configs...
Opinionated help: Where to place data access functions with respect to tRPC router(s)?
src/data-access/post/mutate-thing.ts
, and I am wanting to move them into a folder structure like this: src/server/routers/post/functions/mutate-thing.ts
but this feels a bit too nested (maybe not a bad thing) and for someone new to my codebase, this might make it difficult to find these functions.
My routers are all obviously defined at src/server/routers
, and I import my data access functions directly into each procedure within each router. Should I leave these data functions where they are at?...Types issues upgrading to v11, `never` when using t.router
trpc-shared
.
```typescript...Trpc server actions
v11 incompatible with `@tanstack/react-query` > 5.59.9
Dynamically generate url for httpBatchLink
url
each time the component mounts.
I believe that I wouldn't even need a useEffect if I wasn't using Next, as I could directly grab these values from window.location
, but since I'm using SSR, this code doesn't make it through the SSR pass.
```TSX...onSuccess mutation not being called
onSuccess
callback I show a toast to the user telling them that the request was successful. However, when I do a state change before I call the mutation, eg setRequests
the onSuccess
callback never runs, I know this because the console log never appears. But, when I remove the setRequests
it does, there is no visible error in my console. Why does this happen? Is it by design?
```ts
export const GenerationsCard = ({ generation, selectedFlag, setRequests }: Props) => {
const clearMutation = api.generations.clear.useMutation();
const warnMutation = api.punishments.warn.useMutation();...Module "@trpc/server" has no exported member 'tracked'.

Re: relative imports to trpc.ts
type AppRouter = typeof appRouter
on the server side works as expected, regardless of relative / path alias import. But only upon client side import, the type isn't inferred properly anymore?...paths
within the child packages in monorepos is a bad idea :/
The server/user.router.ts will use the client/tsconfig.json#paths for module resolution during the import from client/index.ts (in contrast to imports from within server/)....Network tab returns array but data is undefined
data
property is undefined
Keep old data when changing trpc procedure inputs
navigate
triggers new inputs for the query.
```...AI support
How to get a TRPCClientError shape as in initTRPC errorFormatter for testing
Basic error handling patterns