From 3714bfed2c6afd74e2ad56d640b813b6af8cb361 Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Tue, 10 Dec 2019 10:06:57 -0800 Subject: [PATCH] Fix logs stuck in pending symbolocated state Summary: This diff fixes an issue where symbolicated logs were getting stuck in a "pending" state if the timeout occurred before symbolication finished. Changelog: [Internal] Reviewed By: sahrens Differential Revision: D18894154 fbshipit-source-id: ed225962468f67aef40e430aa798f8d426d31027 --- Libraries/LogBox/Data/LogBoxData.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Libraries/LogBox/Data/LogBoxData.js b/Libraries/LogBox/Data/LogBoxData.js index cb3fd9cbd3f4ec..2ca6f56a640248 100644 --- a/Libraries/LogBox/Data/LogBoxData.js +++ b/Libraries/LogBox/Data/LogBoxData.js @@ -191,6 +191,9 @@ function appendNewLog(newLog) { if (addPendingLog && status !== 'PENDING') { addPendingLog(); clearTimeout(optimisticTimeout); + } else if (status !== 'PENDING') { + // The log has already been added but we need to trigger a render. + handleUpdate(); } }); } else {