Support freezeResults?
wmertens opened this issue · comments
Wout Mertens commented
I can't find freezeResults
(supported by apollo-cache-inmemory) in the repo, and it's been useful to catch dev errors in the past.
Are objects frozen by default, or would this be a useful addition?
Ian MacLeod commented
Hermes defaults to freezing objects as long as NODE_ENV !== 'production'
(this used to be inmemory's original behavior, as well; not sure if it still has the same default).
You can control that via the freeze
configuration option
Wout Mertens commented
Great 👍