Does tRPC require next?
@trpc/server@11.0.0-rc.553
to @trpc/server@11.0.0-rc.638
but my lockfile gets massive because pnpm installs Next.js
See https://github.com/bnussman/beep/pull/111/files#diff-32824c984905bb02bc7ffcef96a77addd1f1602cff71a11fbbfdd7f53ee026bbR12006
Am I doing something wrong or has something changed on the @trpc/server side? ...Do I need a server to use tRPC?
Can't get type inference from createTRPCNext instance
AppRouter
from the BE as per the instructions, and importing the type in the FE and passing it as a type argument to createTRPCNext
. When inspecting createTRPCNext
in the FE, I can see the type has resolved and the procedures are in there....Not able to seed react query cache
@trpc/react-query
Here is the code I wrote.
```ts...What is wrong with my subscription setup?
Make server side tRPC calls on an external tRPC server ?
Building CLI tool for trpc for type generation
/api/trpc/[trpc]/route.ts
code looks like, im allowing to bypass cors issue when making request from another nextjs app in my case localhost:3000
is main and localhost:3001
is second
```js
import { fetchRequestHandler } from "@trpc/server/adapters/fetch";...tRPC mutation finishes early
tRPC prevents me from using revalidatePath to invalidate cache on the client
tRPC Query Invalidation Issue with Client-Side Data Fetching and Initial Data from server component
How can I automatically use react's cache with tRPC on server side?
Dockerized Next.JS Error [TRPCClientError] INTERNAL_SERVER_ERROR
What is tRPC, when and where should I use it?
Next15 (app router) + ReactQuery, tRPC multiple backends
What are the benefits of adding db to context rather than importing it directly in the router?
Calling Express `request.send` inside tRPC middleware/procedures
request.send
inside my tRPC middleware or procedures. I want to avoid rewriting our entire auth layer which is unfortunately deeply coupled with the express request/response objects, and instead just call our existing express middleware functions. However I want to make sure doing so isn't going to cause any memory leaks or hanging promises or anything which could silently brick the whole server.
Will the tRPC handler return or exit gracefully if the request is closed? Has anyone had experience with this?
example:...Extending "Meta" with downstream concat usage?
permission
and then requiring the meta data to extend the existing base Meta to contain a new required field e.g permission
In my attempts I've just been getting "meta mismatch"...following the trpc 11 guide on app router fails with dynamicIO on nextJS
Date.now()
instead of using performance
or without explicitly calling await connection()
beforehand. See more info here: https://nextjs.org/docs/messages/next-prerender-current-time
at io (node_modules/next/src/server/node-environment-extensions/utils.tsx:33:31)
at now (node_modules/next/src/server/node-environment-extensions/date.tsx:17:9)...Fetch once and never again?
reactionTypes
once when my layout <MainLayout />
renders in Nextjs and never again because this data does not change. Currently, I have placed (what I think is) a headless component into my layout that accesses the query client then sets a staleTime: Infinity
default on this specific query.
Is this a dumb strategy? How might you do this differently?
```TSX...