Optimizing Data Refresh with trpc in React/Nextjs? Is there a more efficient way?
cors
readingbee.se/:1 Access to fetch at 'https://server-z4fnqa7szq-oa.a.run.app/api/trpc/mySignIn' from origin 'https://readingbee.se' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
readingbee.se/:1 Access to fetch at 'https://server-z4fnqa7szq-oa.a.run.app/api/trpc/mySignIn' from origin 'https://readingbee.se' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
Showing pending inside the request?
Output properties missing on frontend results (Type Infer)

Avoid checking for TRPCClientError, and return the error in client query/mutate

Property 'query' does not exist on type ...
export const t = initTRPC.create();
export const t = initTRPC.create();
useQueries passing ctx data to splitLink not working
Build and Publish on lambda from Github Actions

next-pwa with trpc and push notification
Forced router input?
id: z.string()
id: z.string()
Authentication with Expo application
One router multiple adapters?
experimental_createTRPCNextAppDirServer
and the fetchRequestHandler
from the fetch adapter.
The cli can connect and the web app works and all is well, but...
I'm trying to write integration tests for the CLI and I was hoping to use the standalone adapter to run the api during tests. https://trpc.io/docs/server/adapters/standalone
...tRPC Express server with Next.js

is Nextjs enough as backend?
TS(2742) error when trying to create client

Wrapping useQuery into a custom hook
useQuery
into a custom hook (as I have some legacy code that I need to run before). Example:
```
trpc.myendpoint.useQuery({ foo: 'bar' });
// instead of the code above, I want to write this:...Pass additional data from `useQuery` to context
splitLink
there is a way to pass context value through useQuery
as second param { trpc: { context: { x: y } } }
, but it doesn't propagate further from splitLink
.
Is there a similar way to pass some data to context (I want to update context data dynamicaly) after its initialization createContext
?
I have case where my app have route e.g. /[appName]/machine/[x]
and I would like to pass appName
to context so that I don't have to pass it each time with other params on useQuery
. Is that possible and what would be the best way?
I was trying this trpc.machine.useQuery({ id: x }, { trpc: { ctx: { app: "<appName>" } } })
and similar variations....Cannot set headers in procedures with fetch adapter
Does anybody now how to fix cors policy error?

how to handle error from Zod in trpc?