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
Intended outcome:
A single request is made when using 'network-and-cache' for the first time.
Actual outcome:
Two requests are made for the query with 'cache-and-network' when multiple useQuery(s) and/or useLazyQuery(s) are present. It also seems to be related to placing the 'cache-and-network' query below the other query.
How to reproduce the issue:
I have a unit test that uses MockProvider and it's throwing Error: No more mocked responses for the query.
This mock doesn't break in the unit test but you can see it when you look at the console and refresh the (inner) browser/app.
The loading state on query FOO_GQL goes from true -> false -> true.
I couldn't find any documentation about it but by testing it, it works as exepected. If you rerender the component, it will make a server call for "foo" and not "bar"
Intended outcome:
A single request is made when using 'network-and-cache' for the first time.
Actual outcome:
Two requests are made for the query with 'cache-and-network' when multiple useQuery(s) and/or useLazyQuery(s) are present. It also seems to be related to placing the 'cache-and-network' query below the other query.
How to reproduce the issue:
I have a unit test that uses MockProvider and it's throwing
Error: No more mocked responses for the query
.This mock doesn't break in the unit test but you can see it when you look at the console and refresh the (inner) browser/app.
The loading state on query FOO_GQL goes from true -> false -> true.
https://codesandbox.io/s/sharp-darkness-dzy0b
Versions
System:
OS: macOS 10.15.6
Binaries:
Node: 11.15.0 - ~/.nvm/versions/node/v11.15.0/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.7.0 - ~/.nvm/versions/node/v11.15.0/bin/npm
Browsers:
Chrome: 86.0.4240.198
Edge: 86.0.622.69
Firefox: 82.0.2
Safari: 14.0
npmPackages:
@apollo/client: ^3.2.7 => 3.2.7
apollo-link-tracer: ^1.0.26 => 1.0.26
apollo-upload-client: ^14.1.3 => 14.1.3
The text was updated successfully, but these errors were encountered: