KINO
KINO
TtRPC
Created by KINO on 3/20/2024 in #❓-help
How is inner context persistent if we call 'createContext' for every batch?
As per title. According to the docs, inner context doesn't depend on the request, and is useful for persistent objects like your database connection. However, given that createContext is called for every request, I fail to see how calling createInnerContext inside of createContext provides persistence? Docs that I read: https://trpc.io/docs/server/context#inner-and-outer-context
3 replies