Nick
how can I set up trpc to work with nested providers?
The recommended approach would be SOA which we have an example for: https://github.com/trpc/trpc/tree/main/examples/soa
4 replies
trpc caching procedure calls for queries in the same batch
If you put the check in createContext then it will run once per batch. Alternatively you could use a singleton to de-duplicate and cache the checks but be careful to key it appropriately by user
9 replies