@apollo/client package. Where did freezeResults option go?

In Apollo client 2.6 there was a freezeResults config option released for inMemoryCache. However with the latest versions it is no longer there, but you can still have assumeImmutableResults: true,.

How can you make sure when assumeImmutableResults is enabled that you aren’t doing anything potentially breaking when freezeResults no longer exists?

We are running Apollo client on React Native.

@apollo/client”: “3.8.6”,

freezeResults has been removed with Apollo Client 3.0 and is now the default behaviour in development builds, while being disabled in production, for performance reasons.

There is no way to switch it off in development.

1 Like