[ReactNative] Guard agains errors during reconciliation
Summary: @public After refactoring the MessageQueue a guard was missing on around `batchedUpdates` call. Test Plan: Introduce an error on `getInitialState` of `AdsManagerTabsModalView.ios.js`
This commit is contained in:
Родитель
f383bf2b83
Коммит
5e71d352a6
|
@ -76,6 +76,7 @@ class MessageQueue {
|
||||||
* Public APIs
|
* Public APIs
|
||||||
*/
|
*/
|
||||||
processBatch(batch) {
|
processBatch(batch) {
|
||||||
|
guard(() => {
|
||||||
ReactUpdates.batchedUpdates(() => {
|
ReactUpdates.batchedUpdates(() => {
|
||||||
batch.forEach((call) => {
|
batch.forEach((call) => {
|
||||||
let method = call.method === 'callFunctionReturnFlushedQueue' ?
|
let method = call.method === 'callFunctionReturnFlushedQueue' ?
|
||||||
|
@ -85,6 +86,7 @@ class MessageQueue {
|
||||||
BridgeProfiling.profile('ReactUpdates.batchedUpdates()');
|
BridgeProfiling.profile('ReactUpdates.batchedUpdates()');
|
||||||
});
|
});
|
||||||
BridgeProfiling.profileEnd();
|
BridgeProfiling.profileEnd();
|
||||||
|
});
|
||||||
return this.flushedQueue();
|
return this.flushedQueue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче