Skip to content

Commit

Permalink
Fix v11 benchmarks by always rerendering in microtask
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewiggins committed Jan 16, 2024
1 parent ff28147 commit bb53287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component.js
Expand Up @@ -135,7 +135,7 @@ export function enqueueRender(internal) {
prevDebounce !== options.debounceRendering
) {
prevDebounce = options.debounceRendering;
(prevDebounce || setTimeout)(processRenderQueue);
(prevDebounce || queueMicrotask)(processRenderQueue);
}
}

Expand Down

0 comments on commit bb53287

Please sign in to comment.