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.