Update packages/svelte/src/compiler/phases/2-analyze/index.js

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
pull/12545/head
Dominic Gannaway 2 years ago committed by GitHub
parent 6e4eec663a
commit 35290877b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1350,7 +1350,7 @@ const common_visitors = {
}
if (rune === '$state.link') {
// Similar to $derived above, $state is treated as `$state(() => foo)`
// Similar to $derived above, $state.link(foo) is treated as `$state.link(() => foo)`
context.next({
...context.state,
function_depth: context.state.function_depth + 1

Loading…
Cancel
Save