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 got this same error if I have onCompleted as async, calling an async mutation, on apollo client 3.2.0. However, i fixed it by not using async in the onCompleted for the lazy query.
Intended outcome:
useLazyQuery in combination with onCompleted/onError should execute once.
Actual outcome:
Executing useLazyQuery in combination with onCompleted/onError leads to an infinite loop with loading === false.
How to reproduce the issue:
Click here for a Codesandbox example
Versions
bug was introduced in "@apollo/client": "3.0.0-beta.46",
all versions above are affected by the issue
The text was updated successfully, but these errors were encountered: