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
Describe the bug
If the enabled option is false for the useQuery function and if you run a mutation that changes the state of one of the objects obtained using useQuery, then the apollo cache will be updated, but the object inside the component will not. But if enabled is true in useQuery then everything will work as expected, and response of mutation will update state in a component.
Expected behavior
After mutation, the returned data must replace the data received by useQuery, regardless of the state of the enabled option.
Describe the bug
If the
enabled
option isfalse
for theuseQuery
function and if you run a mutation that changes the state of one of the objects obtained usinguseQuery
, then theapollo cache
will be updated, but the object inside the component will not. But ifenabled
istrue
inuseQuery
then everything will work as expected, and response of mutation will update state in a component.Expected behavior
After mutation, the returned data must replace the data received by
useQuery
, regardless of the state of theenabled
option.Versions
vue: [email protected]
vue-apollo: @vue/[email protected]
@apollo/client: @apollo/[email protected]
The text was updated successfully, but these errors were encountered: