Skip to content

Tag: svelte-3

Svelte’s reactivity with array operation

I’m studying svelte. the tutorial states that responsiveness is based on assignment and consequently operations with array such as array.push() must have an assignment. array.push() can be converted to numbers = […numbers, numbers.length + 1] . How to convert pop, shift, unshift, splice and other …

Svelte store function update

Svelte store documentation shows String or Integer being updated, but I did not find any dynamic function in store. I don’t understand how to make the getData function as a writable in order to notify the html of the change. In the following sample, I would like b to be shown after the updateKey functio…