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
When I sign out from a session on my application, the resetStore function is called.
It used to work perfectly fine but since the react update, the code reading stops at the resetStore function.
@ageorgi87 It looks like you're still using Apollo Client v2 (apollo-client and apollo-cache-inmemory have been replaced by the unified @apollo/client package in AC3, as described in the migration guide).
To be honest with you, while we are actively chasing the React team's latest developments with AC3 (#8365, #8458, apollographql/apollo-feature-requests#366, etc.), we have no plans to update the old AC2 packages to work with the latest versions of React. If you have time to dig into the problem and you can come up with a specific change you'd like to see backported to AC2, we might consider it, but I can't promise you I/we can spend much time on this.
Intended outcome:
I would like to upgrade react from version 16.14.0 to version 17.0.2
Since I did, the function resetStore (https://www.apollographql.com/docs/react/api/core/ApolloClient/#ApolloClient.resetStore) doesn't seems to work anymore.
More specifically, it seems to be the reFetchObservableQueries function, called by resetStore(), which seems to block.
Actual outcome:
When I sign out from a session on my application, the resetStore function is called.
It used to work perfectly fine but since the react update, the code reading stops at the resetStore function.
My code :
My console :
Versions
System:
OS: macOS 11.6
Binaries:
Node: 14.17.6 - ~/.nvm/versions/node/v14.17.6/bin/node
Yarn: 1.19.1 - ~/.nvm/versions/node/v14.17.6/bin/yarn
npm: 6.14.15 - ~/.nvm/versions/node/v14.17.6/bin/npm
Browsers:
Chrome: 95.0.4638.69
Safari: 15.1
npmPackages:
@apollo/react-hooks: ^3.0.1 => 3.1.5
apollo-cache-inmemory: ^1.2.9 => 1.6.6
apollo-client: ^2.4.1 => 2.6.10
apollo-link-http: ^1.5.4 => 1.5.17
react-apollo: ^3.0.1 => 3.1.5
Thanks for your help !
The text was updated successfully, but these errors were encountered: