Svelte · Senior · Question 6 of 75

What happens with updates batched in Svelte 5?

count = 1;
count = 2;
name = "Ann";

Explanation

Batching avoids wasted work and intermediate states. flushSync() applies updates immediately when needed.

Further reading

Problem with a question

Svelte · Senior · question 6

Test yourself

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

Take this quiz