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
Daniel Miladinov committed
Sep 25, 2013 at 23:52 UTC
b0ae800d64f79fcb9b719d9099303bcaef0ddf04
1 file changed
+1
-1
src/core/ReactCompositeComponent.js
+1
-1
@@ -110,7 +110,7 @@ var ReactCompositeComponentInterface = {
110
* @return {object}
111
* @optional
112
*/
113
- getDefaultProps: SpecPolicy.DEFINE_ONCE,
113
+ getDefaultProps: SpecPolicy.DEFINE_MANY_MERGED,
114
115
/**
116
* Invoked once before the component is mounted. The return value will be used