mirror of https://github.com/status-im/metro.git
Avoid doing multiple unnecessary traversals when hot patching modules
Reviewed By: martinbigio Differential Revision: D6853969 fbshipit-source-id: 982ca135a4113c985bbd7d8e8631601e16844a86
This commit is contained in:
parent
2596f0f362
commit
e329f00dc9
|
@ -296,7 +296,7 @@ if (__DEV__) {
|
|||
parents.push(...inverseDependencies[notAccepted[i]]);
|
||||
}
|
||||
|
||||
return acceptAll(parents, inverseDependencies);
|
||||
return parents.length == 0;
|
||||
};
|
||||
|
||||
const accept = function(
|
||||
|
|
Loading…
Reference in New Issue