Skip to content

Conversation

@toshi38
Copy link

@toshi38 toshi38 commented Jun 5, 2018

If getSnapshotBeforeUpdate does not return a snapshot value or null
it will cause a warning. Document that it should return this value.

@facebook-github-bot
Copy link
Collaborator

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@toshi38 toshi38 force-pushed the stelau/getSnapshotBeforeUpdate-return-value branch from c361ee2 to af23dbb Compare June 5, 2018 13:47
@reactjs-bot
Copy link

Deploy preview for reactjs ready!

Built with commit c361ee21f981f1b1a0f41240b39647f5743ed486

https://deploy-preview-930--reactjs.netlify.com

@facebook-github-bot
Copy link
Collaborator

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@facebook-github-bot
Copy link
Collaborator

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@reactjs-bot
Copy link

reactjs-bot commented Jun 5, 2018

Deploy preview for reactjs ready!

Built with commit b714479

https://deploy-preview-930--reactjs.netlify.com

@toshi38
Copy link
Author

toshi38 commented Jun 5, 2018

Seems to break on something unrelated to my changes, can someone retrigger this? ... or do you prefer I force push to retrigger?

If getSnapshotBeforeUpdate does not return a snapshot value or null
it will cause a warning.  Document that it should return this value.
@toshi38 toshi38 force-pushed the stelau/getSnapshotBeforeUpdate-return-value branch from af23dbb to b714479 Compare June 11, 2018 07:37
@gaearon gaearon merged commit 61a8b62 into reactjs:master Jun 22, 2018
@gaearon
Copy link
Member

gaearon commented Jun 22, 2018

Looks good, thanks.

@toshi38 toshi38 deleted the stelau/getSnapshotBeforeUpdate-return-value branch June 25, 2018 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants