scinorandex
TTCTheo's Typesafe Cult
•Created by scinorandex on 1/8/2023 in #questions
How does one handle a lot of conditional rendering based on the permissions of the logged in user?
It kind of seems annoying to have check(user.permissions, Permissions.MANAGE_OTHER_USERS) for everything, especially when different permissions activate different UI elements.
3 replies
TTCTheo's Typesafe Cult
•Created by scinorandex on 1/7/2023 in #questions
Is it possible to use tRPC as *just* a fullstack API server and client?
I don't need the features that react-query brings, I just need to be able to make my usual rest endpoint calls. My app isn't there yet, and would like to learn that when I eventually use it.
11 replies
TTCTheo's Typesafe Cult
•Created by scinorandex on 1/6/2023 in #questions
When does _count exist in prisma?
5 replies