You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So apparently we have too much repeated code in the components. contextTypes, getChildContext, getInitialState and componentWillReceiveProps to name a few.
We could merge them in a Mixin but seemingly React is moving away from mixins. The alternative solution is to use a high-order component. Or maybe require context to always be exposed by a root component like it was before? (This would also solve #1926)
Thoughts?
The text was updated successfully, but these errors were encountered:
So apparently we have too much repeated code in the components.
contextTypes
,getChildContext
,getInitialState
andcomponentWillReceiveProps
to name a few.We could merge them in a Mixin but seemingly React is moving away from mixins. The alternative solution is to use a high-order component. Or maybe require context to always be exposed by a root component like it was before? (This would also solve #1926)
Thoughts?
The text was updated successfully, but these errors were encountered: