mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user