Comments (2)
You might have the same problem as i did
#24
go to the denormalizr source and go to lib/index.js and change line 172 to 178 with this:
if (schema instanceof _EntitySchema2.default || typeof obj === "number" || typeof obj === "string") {
return denormalizeEntity(obj, entities, schema, bag);
} else if (schema instanceof _IterableSchema2.default || Array.isArray(obj)) {
return denormalizeIterable(obj, entities, schema, bag);
} else if (schema instanceof _UnionSchema2.default) {
return denormalizeUnion(obj, entities, schema, bag);
}
its not an elegant fix, but ive found its made the library work for me
from denormalizr.
This should be solved in the latest version. Please upgrade normalizr and denormalizr thanks!
from denormalizr.
Related Issues (20)
- Support memoization HOT 11
- How does it handle circular schemas? HOT 2
- Update the README documentation HOT 4
- Typescript Support HOT 1
- Calling a function on each object after denormalization HOT 1
- Denormalizing a list doesn't work the same as in the README HOT 6
- Denormalised child objects are always empty HOT 2
- Feature request - support unpkg.com HOT 1
- Lodash is getting duplicated in my build HOT 2
- Doesn't support using a function in getIdAttribute HOT 2
- Denormalizing a list of ids HOT 1
- Support normalizr 3.0 HOT 2
- denormalize isn't working with normalizr 3.2.1 HOT 2
- Related entities not correctly populated in latest version HOT 5
- Deprecating this module HOT 1
- Null should denormalize to null HOT 2
- Update readme? Normalizr denormalize doesn't handle recursive models, denormalizr still useful for that. HOT 3
- Maximum denormalization level, how to fail on missing entity? HOT 6
- why is the second argument to denormalize required? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from denormalizr.