Best practice: one mutation per table row? #7464
Answered
by
TkDodo
jesseduffield
asked this question in
Q&A
-
I have a few tables in my app where each row has a button to perform an action (i.e. a mutation) and each row needs to show a loading state if the mutation is in flight. It seems like there are two ways to achieve this:
Option 2 is much easier to implement because I get per-row loading states for free, but I'm wondering if there's some good reason to prefer option 1 e.g. performance, separation of concerns. Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
May 21, 2024
Replies: 1 comment 1 reply
-
nah, option 2 is better. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jesseduffield
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nah, option 2 is better.