You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 17, 2017. It is now read-only.
author: Object
id: 2
title: "You won't believe what this high order component is doing"
Which is great... but author is an empty object.
I have also had this problem when trying to implement this code with other normalised objects, I have tried using previous versions of the denormalizr too, but that too doesnt work. I am using normalizr version 2.2.1 on Chromium web browser.
The text was updated successfully, but these errors were encountered:
The problem seems to be that in the denormalize function, when an individual entity is being parsed, it does not enter this if statement "if (schema instanceof _EntitySchema2.default)" (line 172).
This causes line 180, which clones the object, to instead clone it to an empty object.
As a temporary fix if i change line 172 to: "if (schema instanceof _EntitySchema2.default || typeof obj === "number") {", the denormalizr works.
I dont know why the schema wont be seen as a child of EntitySchema2, at the moment, if i have more time i might try to make the temporary fix into something more... substantial.
I copied the code from the example:
The denormalized variable returns:
Which is great... but author is an empty object.
I have also had this problem when trying to implement this code with other normalised objects, I have tried using previous versions of the denormalizr too, but that too doesnt work. I am using normalizr version 2.2.1 on Chromium web browser.
The text was updated successfully, but these errors were encountered: