Skip to content

Tag: svelte-store

Iterate over Store via Map

Via a Map Objects are added to a Svelte Store. Every object has an ID and it should be possible to iterate over those IDs. With $entities.get(“123”).currentPage; The current Page of this Object is returned. How can I iterate over more than one ID such that the current pages of all objects in the s…

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…