Skip to content

componentWillReceiveProps is not secure anymore #108

@apppro123

Description

@apppro123

I got a warning because of this methode "componentWillReceiveProps" in lib/BaseInput.js.

I made now a workaround with shouldComponentUpdate (i know that this is propably not the best solution):

Instead of componentWillReceiveProps(...){...}

I now use shouldComponentUpdate(newProps){...
return true}

I always return true now, so it definitely updates, i'm not sure if this is needed...
I hope this helps in improving your amazing library.
Thanks for your work in making these effects!

If there are further questions, just write please.

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