Skip to content

Replace componentWillUpdate with getDerivedStateFromProps#11

Open
peteredhead wants to merge 1 commit intoDeedMob:masterfrom
peteredhead:master
Open

Replace componentWillUpdate with getDerivedStateFromProps#11
peteredhead wants to merge 1 commit intoDeedMob:masterfrom
peteredhead:master

Conversation

@peteredhead
Copy link

From the React docs: componentWillReceiveProps has been renamed, and is not recommended for use.
To remove the warning messages and ensure that react-load-image continues to work in React v17, this update replaces it with getDerivedStateFromProps()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant