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
If I call useQuery from componentA with a distinct variable set, and that query has an error, I expect to have an error returned back int the query result.
If I then change that variable set for the same query within componentA, the error should not continue to be returned, even temporarily.
Actual outcome:
The error from an older variable set is temporarily present until the fetch is complete, and then it is gone.
Notice that you will see an error from "useQuery", this is expected.
Click the button to return home where there is no movie query parameter.
Click the button to navigate to valid movie.
Note a flicker where the error message will temporarily render, and note in the console that the error is still present from the "useQuery" return value.
The error then disappears once the fetch is complete. However, since the variable set is distinct at this point, the "useQuery" state should be empty and there should be no cached value for this query yet.
it's possible this is related to #4644 which was never resolved.
Intended outcome:
If I call
useQuery
fromcomponentA
with a distinct variable set, and that query has an error, I expect to have an error returned back int the query result.If I then change that variable set for the same query within
componentA
, the error should not continue to be returned, even temporarily.Actual outcome:
The error from an older variable set is temporarily present until the fetch is complete, and then it is gone.
How to reproduce the issue:
errors
branch.it's possible this is related to #4644 which was never resolved.
Versions
System:
OS: macOS 11.4
Binaries:
Node: 12.18.4 - /usr/local/bin/node
Yarn: 1.22.4 - ~/npm-global/bin/yarn
npm: 6.14.6 - /usr/local/bin/npm
Browsers:
Chrome: 91.0.4472.114
Safari: 14.1.1
npmPackages:
@apollo/client: ^3.3.20 => 3.3.20
apollo-server-express: ^2.19.0 => 2.19.0
npmGlobalPackages:
apollo: 2.27.0
The text was updated successfully, but these errors were encountered: