You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This tutorial does not seem to be up to date with the current framework behavior.
There are a couple incongruencies:
Following the tutorial you end up with an input that creates todos on enter keydown, but the UI does not update until you refresh.
Pressing the solve button adds a $bindable() rune to the data prop, but this is not mentioned anywhere in the tutorial, and does not actually seem to be necessary or make a difference.
I think the issue is that the example is trying to deeply mutate the data prop, but it's not a reactive prop, so it does not detect the change. Changing data update line from data.todos to a full reassignment of data fixes the example.
Screen.Recording.2024-11-03.at.2.58.37.PM.mov
The text was updated successfully, but these errors were encountered:
https://svelte.dev/tutorial/kit/post-handlers
This tutorial does not seem to be up to date with the current framework behavior.
There are a couple incongruencies:
$bindable()
rune to thedata
prop, but this is not mentioned anywhere in the tutorial, and does not actually seem to be necessary or make a difference.I think the issue is that the example is trying to deeply mutate the
data
prop, but it's not a reactive prop, so it does not detect the change. Changing data update line fromdata.todos
to a full reassignment ofdata
fixes the example.Screen.Recording.2024-11-03.at.2.58.37.PM.mov
The text was updated successfully, but these errors were encountered: