Skip to content

Commit

Permalink
Skip unknown prop warning for undefined values
Browse files Browse the repository at this point in the history
  • Loading branch information
michalochman committed Jan 19, 2020
1 parent 0887234 commit efb9674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ReactPixiFiberUnknownPropertyHook.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ if (__DEV__) {
warnedProperties[name] = true;
return true;
}
} else if (!isReserved) {
} else if (!isReserved && typeof value !== "undefined") {
warning(
false,
"React does not recognize prop `%s` on `<%s />`. If you accidentally passed it from a parent component, remove it from `<%s />`.%s",
Expand Down

0 comments on commit efb9674

Please sign in to comment.