mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Change spec policy for getDefaultProps to SpecPolicy.DEFINE_MANY_MERGED
This will allow multiple mixins for a component to define getDefaultProps and their values will be merged. See also: https://groups.google.com/d/msg/reactjs/UzSiXw2Vo5s/FxK7AHWOzLMJ
This commit is contained in:
@@ -110,7 +110,7 @@ var ReactCompositeComponentInterface = {
|
||||
* @return {object}
|
||||
* @optional
|
||||
*/
|
||||
getDefaultProps: SpecPolicy.DEFINE_ONCE,
|
||||
getDefaultProps: SpecPolicy.DEFINE_MANY_MERGED,
|
||||
|
||||
/**
|
||||
* Invoked once before the component is mounted. The return value will be used
|
||||
|
||||
Reference in New Issue
Block a user