[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
|
||||
*/
|
||||
processBatch(batch) {
|
||||
guard(() => {
|
||||
ReactUpdates.batchedUpdates(() => {
|
||||
batch.forEach((call) => {
|
||||
let method = call.method === 'callFunctionReturnFlushedQueue' ?
|
||||
|
@ -85,6 +86,7 @@ class MessageQueue {
|
|||
BridgeProfiling.profile('ReactUpdates.batchedUpdates()');
|
||||
});
|
||||
BridgeProfiling.profileEnd();
|
||||
});
|
||||
return this.flushedQueue();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче