RTKQuery: About performance while putting query/mutation hook inside multiple components #3971
Unanswered
QuangBinhDinh
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My React Native app has a screen which includes list of product card. Let say each card has a button to add the product to user wishlist. So I create an
useAddWishlistMutation
hook and put into the componentProductCard
. But then I realize the list could reach about 100-150 cards like that , so I wonder if this scenario could hit the performance of the app. Or should I move the mutation hook to the parent component and pass down the function toProductCard
component? Any advise will be gratefulBeta Was this translation helpful? Give feedback.
All reactions