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
What actually happens is that everything occurs at network level and cache, but what is not being updated is the cache for case B (even if network displays that new data has arrived).
What do i expect:
after executing onDelete({...} my filtered list should be refreshed with the -1 entry...
Using: React.js
Im trying out
refetchQueries
onuseMutation
, i expected to have the new data to be displayed after the action occurs:A) i populate a list with:
B) i execute the
refetch
event with some filtersC) i try to delete any element on the list:
Whats wrong:
What actually happens is that everything occurs at network level and cache, but what is not being updated is the cache for case B (even if network displays that new data has arrived).
What do i expect:
after executing
onDelete({...}
my filtered list should be refreshed with the -1 entry...Versions
System:
OS: macOS 10.15.1
Binaries:
Node: 13.5.0 - /usr/local/bin/node
Yarn: 1.21.1 - /usr/local/bin/yarn
npm: 6.13.4 - /usr/local/bin/npm
Browsers:
Chrome: 80.0.3987.132
Firefox: 73.0.1
Safari: 13.0.3
npmPackages:
apollo-boost: ^0.4.4 => 0.4.7
apollo-cache-inmemory: ^1.2.9 => 1.6.5
apollo-client: ^2.4.1 => 2.6.8
react-apollo: ^3.0.0 => 3.1.3
The text was updated successfully, but these errors were encountered: