Skip to content
This repository was archived by the owner on Nov 17, 2017. It is now read-only.
This repository was archived by the owner on Nov 17, 2017. It is now read-only.

Doesn't support using a function in getIdAttribute #30

@lingard

Description

@lingard

Normalizr allows you to pass a function to idAttribute instead of a string but as denormalizr seems to assume that the returned value from schema.getIdAttribute is a string it won't work.

id = getIn(entity, [schema.getIdAttribute()]);

I guess I could work around this issue by plucking the id attributes from my objects before denormalizing but that doesn't feel optimal...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions