mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Ensure recursion is terminated on objects with cyclical references
Reviewed By: spicyj Differential Revision: D2922542 fb-gh-sync-id: 3820569027a5906ff844f1cda5e2e65c2692e235 shipit-source-id: 3820569027a5906ff844f1cda5e2e65c2692e235
This commit is contained in:
committed by
facebook-github-bot-5
parent
4b722d6d2a
commit
bb3d8d5350
@@ -115,7 +115,11 @@ ReactNativeBaseComponent.Mixin = {
|
||||
this._currentElement = nextElement;
|
||||
|
||||
if (__DEV__) {
|
||||
deepFreezeAndThrowOnMutationInDev(this._currentElement.props);
|
||||
for (var key in this.viewConfig.validAttributes) {
|
||||
if (nextElement.props.hasOwnProperty(key)) {
|
||||
deepFreezeAndThrowOnMutationInDev(nextElement.props[key]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var updatePayload = ReactNativeAttributePayload.diff(
|
||||
|
||||
Reference in New Issue
Block a user