mutate in loop cause infinite re renders
usecase:
I have orders coming from other hooks wraped around useQuery
I am getting orders from those hook
What i need to do
loop through all orders, get few properties and fire mutation inside loop, get data from previous mutation and fire other mutation .
Problem
mutation causing infinite re renders (used async mutation),
code
1 Reply
absent-sapphire•4y ago
show a codesandbox reproduction please