Replies: 1 comment
-
Have the same issu, did you get some ifo why the props aproach didn't work? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm trying to make a simple reusable modal that calls a mutation and tracks the status of the mutation call.
I want the component to support various mutations so my first thought was to pass
mutate
function andstatus
as props to the child component (the reusable modal).the
mutate
function works fine butstatus
state is not being updated inside the child component. Can anyone give me feedback on this particular situation?I was able to work around the problem using
useMutationStatus
but I am still very curious to why the approach above doesn't work as expected. I am new to the tanstack world, so I might be missing something... I'd be grateful for some advice.(Something like this)

Beta Was this translation helpful? Give feedback.
All reactions