RTK Query clarification best way to partial update nested state returned from query hook cross multiple component #4564
engamrfarrag
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
option 1:
i can use usePostQueryById and then setState and then pass the state and setState to child as prop and so one and then save that state in useUpdatePost(state)
option 2 :
using updateQueryData to that endpoint and then get the last state of usePostQueryById and then useUpdatePost(state)
is there are another better way to partial update nested state cross multiple component
Beta Was this translation helpful? Give feedback.
All reactions