We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c082a5 commit f31dcd0Copy full SHA for f31dcd0
packages/svelte/src/compiler/phases/2-analyze/index.js
@@ -892,8 +892,8 @@ const runes_scope_tweaker = {
892
CallExpression(node, { state, next }) {
893
const rune = get_rune(node, state.scope);
894
895
- // `$inspect(foo)` should not trigger the `static-state-reference` warning
896
- if (rune === '$inspect') {
+ // `$inspect(foo)` or $lazy(foo) should not trigger the `static-state-reference` warning
+ if (rune === '$inspect' || rune === '$lazy') {
897
next({ ...state, function_depth: state.function_depth + 1 });
898
}
899
},
0 commit comments