Svelte · Middle · Question 28 of 75

What does flushSync() from svelte do?

Explanation

Svelte batches updates in a microtask. await tick() is the async alternative.

Further reading

Problem with a question

Svelte · Middle · question 28

Test yourself

Take the Svelte · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz