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

Not compatible with Apollo client 3.6 due to removed hooks. #64

Closed smundro closed 2 years ago

smundro commented 2 years ago
Compiled with problems:

ERROR in ./node_modules/@nerdwallet/apollo-cache-policies/dist/hooks/useFragmentWhere.js 21:22-77

Module not found: Error: Can't resolve '@apollo/client/react/hooks/utils/useDeepMemo' 
danReynolds commented 2 years ago

Thanks for the report! Im on vacation for another 2ish weeks. Im thinking the fix here is to just copy that util into this lib or see how they’re memoizing hook post the refactor. I can look into that once im back or if anyone wants to dive in feel free

danReynolds commented 2 years ago

Resolved in https://github.com/NerdWalletOSS/apollo-cache-policies/pull/65