gpbl / denormalizr

Denormalize data normalized with normalizr
https://www.npmjs.com/package/denormalizr
MIT License
228 stars 24 forks source link

why is the second argument to denormalize required? #8

Closed arunkjn closed 7 years ago

arunkjn commented 8 years ago

Just wondering what is the need for the second argument that is supplied with list of all entities. Isnt it possible to denormalize a single entity given a schema?

gpbl commented 8 years ago

The reason behind denormalizr is to denormalize an entity containing references to other entities. This can't happen without passing the other entities to it.

gpbl commented 7 years ago

@arunkjn I think your question was answered. Feel free to write back if needed, thanks!