Skip to content

Commit

Permalink
Loosen gDSFP check in setComponentProps
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewiggins committed May 17, 2018
1 parent 9fbc008 commit 7a905ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vdom/component.js
Expand Up @@ -20,7 +20,7 @@ export function setComponentProps(component, props, opts, context, mountAll) {
if ((component.__ref = props.ref)) delete props.ref;
if ((component.__key = props.key)) delete props.key;

if (typeof component.constructor.getDerivedStateFromProps === 'undefined') {
if (!component.constructor.getDerivedStateFromProps) {
if (!component.base || mountAll) {
if (component.componentWillMount) component.componentWillMount();
}
Expand Down

0 comments on commit 7a905ae

Please sign in to comment.