normalizr-immutable icon indicating copy to clipboard operation
normalizr-immutable copied to clipboard

Late binding: ignoring the proxies in certain cases

Open mschipperheyn opened this issue 9 years ago • 0 comments

You can use the proxy to get an object reference from a provided state so, you don't have to manually retrieve the id from the state. This is great because it allows you to use you normalized object structures as if they had never been normalized.

However, in some cases you want to be able to turn this off. For instance, when you merge data or when you serialize data for storage.

It would be ideal if you could late bind the state to the proxy so it will only process the proxies if the state is bound and otherwise, it will just return the id. The challenging thing is that this is a deeply nested structure.

Any ideas?

mschipperheyn avatar Jun 23 '16 19:06 mschipperheyn