Skip to content

Not reacting to value change #110

@FredrikNoren

Description

@FredrikNoren

If I change value to something new, it's not reflected in the UI (nothing changes). After some debugging I think the culprit is this line: https://github.com/JedWatson/react-codemirror/blob/master/lib/Codemirror.js#L46

Because of that, the nextProps.value !== this.props.value equality is always false on line 68, because this.props.value has already been updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions