File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
packages/svelte/src/compiler/phases/3-transform/client/visitors/shared Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { normalize_attribute } from '../../../../../../utils.js';
55import { is_ignored } from '../../../../../state.js' ;
66import { is_event_attribute } from '../../../../../utils/ast.js' ;
77import * as b from '../../../../../utils/builders.js' ;
8- import { build_getter , create_derived } from '../../utils.js' ;
8+ import { build_getter } from '../../utils.js' ;
99import { build_template_chunk , get_expression_id } from './utils.js' ;
1010
1111/**
@@ -61,10 +61,9 @@ export function build_set_attributes(
6161 let value = /** @type {Expression } */ ( context . visit ( attribute ) ) ;
6262
6363 if ( attribute . metadata . expression . has_call ) {
64- const id = b . id ( state . scope . generate ( 'spread_with_call' ) ) ;
65- state . init . push ( b . const ( id , create_derived ( state , b . thunk ( value ) ) ) ) ;
66- value = b . call ( '$.get' , id ) ;
64+ value = get_expression_id ( context . state , value ) ;
6765 }
66+
6867 values . push ( b . spread ( value ) ) ;
6968 }
7069 }
You can’t perform that action at this time.
0 commit comments