NerdWalletOSS / apollo-cache-policies

An extension of the Apollo 3 cache with support for advanced cache policies.
Apache License 2.0
156 stars 22 forks source link

reset entity store watcher and type map with init #36

Closed danReynolds closed 3 years ago

danReynolds commented 3 years ago

The Apollo 3.4 init API as seen here https://github.com/apollographql/apollo-client/commit/19210dec11a8462c88a4f98f667803dd01c328bd resets the entity store but it would cause the EntityTypeMap and EntityStoreWatcher to get out of sync. Now calling init also resets the store watcher and type map as expected.