Skip to content

resetStore() doesn't work after React upgrade to 17.0.2 #9106

Closed as not planned
@ageorgi87

Description

@ageorgi87

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 :
Capture d’écran 2021-11-23 à 14 33 43

My console :
Capture d’écran 2021-11-23 à 14 37 32
Capture d’écran 2021-11-23 à 14 38 29

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions