docs: correct toggle function in lifecycle hooks example (#15486)

pull/15492/head
Maple 6 months ago committed by GitHub
parent 81480c40a0
commit dbd4617ac4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -147,7 +147,7 @@ With runes, we can use `$effect.pre`, which behaves the same as `$effect` but ru
}
function toggle() {
toggleValue = !toggleValue;
theme = theme === 'dark' ? 'light' : 'dark';
}
</script>

Loading…
Cancel
Save