Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

Data seems not reactive, possible bug in svelte.dev tutorial? [closed]

$
0
0

I am talking about Svelte.dev tutorial.

Basically, everything (after using the solution of course) works fine (handler answers, database answers, new position is added to array of data.todos), just the view does not update when data.todos is mutated within function. Refreshing view brings new data.todos from database and makes everything correct (new data displayed). So seems, data.todos isn't considered reactive? I'd like to understand why to avoid something similar in the future.


Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>