Skip to content
This repository was archived by the owner on Feb 19, 2022. It is now read-only.

It doesnt seem to work with ImmutableJS #113

@oskarleonard

Description

@oskarleonard

I am getting this error:
TypeError: Unknown node of type: undefined at traverse.js:373:9

When i try to do this in a comp

    return (
        <div className="footer__container">
            {
                links && links.map((link, index) => {
                    return (
                        <p key={index}>dfdfdf</p>
                    );
                })
            }
        </div>
    );

However, if i change the link to a regular js list it will work:

    return (
        <div className="footer__container">
            {
                links && links.toJS().map((link, index) => {
                    return (
                        <p key={index}>dfdfdf</p>
                    );
                })
            }
        </div>
    );

When i log the list to the console, you clearly see the props of the regular list while the ImmutableJS list will only display object. And you can see the type prop on the regular list.

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions