Context
While working on my last project, a spaced repetition learning app (play with the demo here), I stumbled upon Svelte, a componen...
For further actions, you may consider blocking this person and/or reporting abuse
I believe instead of the setTimeout the official solution would have been
await tick()(check svelte.dev/tutorial/tick). Otherwise, very cool and helpful article!Ooo thank you for letting me know about that! Indeed
setTimeoutfelt rather hacky at the time, which should have been a clear indicator there was a better solution out there. I'm glad you found the article helpful tho! Hope you're making something cool with Svelte and the rest of the gang :)