diff --git a/Libraries/Core/Timers/JSTimers.js b/Libraries/Core/Timers/JSTimers.js index 5bdd927cda3..6dfd439cd36 100644 --- a/Libraries/Core/Timers/JSTimers.js +++ b/Libraries/Core/Timers/JSTimers.js @@ -218,8 +218,8 @@ function _freeCallback(timerID: number) { const index = timerIDs.indexOf(timerID); // See corresponding comment in `callTimers` for reasoning behind this if (index !== -1) { - _clearIndex(index); const type = types[index]; + _clearIndex(index); if (type !== 'setImmediate' && type !== 'requestIdleCallback') { deleteTimer(timerID); }