Svelte · Senior · Question 60 of 75

What is the difference between mount and hydrate?

Explanation

Effects (including onMount) don't run during the mount/hydrate call itself; call flushSync() to run them immediately, e.g. in tests.

Further reading

Problem with a question

Svelte · Senior · question 60

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