Video details

Svelte 101: tick()


We've learned about reactivity and reactive declarations and statements, it's time to know about the tick() function
tick() allows you to wait for all pending updates to be applied to the DOM.
In this video, I am showing 2 examples of how you could use tick() in your Svelte component.
Introduction 00:00 First example - wait for reactive declared variables to be updated 00:45 Second example - wait for updates to restore element state 05:23
Related Resources Svelte Svelte REPL Svelte Tutorial: tick()
🥰 Support me
Want to learn more from me? Check out these links:
Twitter: Blog: Newsletter:
#svelte #svelte101
Thanks for watching 🥰 -- with love, Li Hau