3 ms·
What in hells name is an #await doing in the HTML render function?
by Aeolun 6y ago
What in hells name is an #await doing in the HTML render function?
- dceddia 6y agoThe #await is a Svelte feature that lets you handle promises, and show different content when the promise is unresolved/loading, resolved, or rejected. Check out the demo in the docs: https://svelte.dev/tutorial/await-blocks https://svelte.dev/tutorial/await-blocks