Remove setTimeout from spell check results dispatch (#20342)

GitOrigin-RevId: 9973b216d60b20c2b6aaf5205c13e2db69cbd589
This commit is contained in:
Alf Eaton 2024-09-12 09:40:08 +01:00 committed by Copybot
parent 26af3e1ecf
commit 0e40011e14

View file

@ -99,11 +99,9 @@ export class SpellChecker {
unknownWords,
misspellings
)
window.setTimeout(() => {
view.dispatch({
effects: compileEffects(result),
})
}, 0)
}
if (unknownWords.length === 0) {
processResult([])