Key block behavior #13979
Unanswered
megashrieks
asked this question in
Q&A
Key block behavior
#13979
Replies: 1 comment
-
Kind of. The Try switching the transition to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm going through the Svelte tutorial and in the Key block lesson
The lesson states that whenever the expression in the
Key
changes, the block is destroyed and recreated.In the example the following code is shown, which works great
However I was experimenting and found that the following code behaves strangely
The expectation is that the typewriter animation is triggered on
index == 5
and when snapping back toindex == 0
But the message is not updated in the
<p>
after index 5 and it snap back to 0 later. Is this the expected behavior?Beta Was this translation helpful? Give feedback.
All reactions