pull/10481/head
navorite 3 years ago
parent b686360af3
commit dae9081045

@ -2,4 +2,4 @@
'svelte': patch
---
fix: allow stores in `transition`,`animation`,`use` directives
fix: subscribe to stores in `transition`,`animation`,`use` directives

@ -294,7 +294,9 @@ export function create_scopes(ast, root, allow_reactive_declarations, parent) {
const SvelteDirective = (node, context) => {
const name = node.name;
if (name[0] === '$') context.state.scope.reference(b.id(name), context.path);
if (name[0] === '$') {
context.state.scope.reference(b.id(name), context.path);
}
};
/**

Loading…
Cancel
Save