You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a component which performs a mutation. This mutation kicks off a long running process in my API so the response from the mutation is simply an id.
I am finding that the polling query never enables, most likely due to either a re-render or perhaps the logic above. I am wondering if there is perhaps best practice for approaching this type of scenario. I have tried setting external state for the id field but that doesnt seem to help.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a component which performs a mutation. This mutation kicks off a long running process in my API so the response from the mutation is simply an
id
.Next I have a polling query which needs to poll based on that returned
id
from the mutation:I am finding that the polling query never enables, most likely due to either a re-render or perhaps the logic above. I am wondering if there is perhaps best practice for approaching this type of scenario. I have tried setting external state for the
id
field but that doesnt seem to help.Beta Was this translation helpful? Give feedback.
All reactions