Skip to content

[Flare] createInitialState -> getInitialState#16051

Merged
trueadm merged 1 commit intofacebook:masterfrom
trueadm:relabel-flare
Jul 4, 2019
Merged

[Flare] createInitialState -> getInitialState#16051
trueadm merged 1 commit intofacebook:masterfrom
trueadm:relabel-flare

Conversation

@trueadm
Copy link
Copy Markdown
Contributor

@trueadm trueadm commented Jul 3, 2019

There was feedback that createInitialState on event responders made them seem like the old React component API and that responders might have a this. To be honest, the naming is probably better suited to be using get rather than create anyway, as the responder methods are not bound to an instance, but are rather static functions.

@sizebot
Copy link
Copy Markdown

sizebot commented Jul 3, 2019

No significant bundle size changes to report.

Generated by 🚫 dangerJS

@trueadm trueadm merged commit 786186c into facebook:master Jul 4, 2019
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