I wish React had a lifecycle method called getDerivedStateFromProps that was called on component construction and componentWillReceiveProps.
-
-
Could having two methods be sufficient? getInitialState(props) and getUpdatedStateFromProps(props, state)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Can we add computed properties yet
@sebmarkbage?Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I've been using `reselect` for this, even though it's not its intended use casepic.twitter.com/vtQMuLzwqr
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 