[REQ] :: pass variable to retry in useMutation for analytics #8217
Unanswered
chanphiromsok
asked this question in
Ideas
Replies: 1 comment 2 replies
-
retry isn’t the right place for this, it’s supposed to be a pure function that determines if a retry should take place. Depending on what kind of analytics you want, you can set-up a global |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I can see in
useMutationState
but it is not reliable as a pass prop toretry
directly I want to get a variable pass frommutate
ormutateAsync
I want to make analytics to firebase and it is hard to depend on variables I have to customuseCallback
to make useMutationState reflect changing the value inretry
Beta Was this translation helpful? Give feedback.
All reactions