Mo3geza
TTCTheo's Typesafe Cult
•Created by Paul on 4/22/2024 in #questions
Is Prisma ORM still slow?
it's just the multiple queries + merging them together at runtime
11 replies
TTCTheo's Typesafe Cult
•Created by Paul on 4/22/2024 in #questions
Is Prisma ORM still slow?
nope, in itself it isn't
11 replies
TTCTheo's Typesafe Cult
•Created by Circus on 4/22/2024 in #questions
Appropriate Use of Modals - Attach to mapped components or pass modal logic down?
So here in the centralized modal example you wrote your logic in the page component that renders each Todo, so if modal logic contains a useState or anything could cause any re-renders the app component gonna render the todos again so if you have just one task you need to render the model in the app going to re-render all todos, which is bad for performance, but if you used the modal on each mapped component example if you triggered the modal the the only thing that is gonna re-render is the only task which triggered the modal, so no need for unnecessary re-rendering of the other todos in the centralized modal example
8 replies