@@ -106,7 +106,7 @@ function serialize_style_directives(style_directives, element_id, context, is_at
106
106
if ( ! is_attributes_reactive && contains_call_expression ) {
107
107
state . init . push ( singular ) ;
108
108
} else if ( is_attributes_reactive || directive . metadata . dynamic || contains_call_expression ) {
109
- state . update . push ( { grouped, singular } ) ;
109
+ state . update . push ( { grouped } ) ;
110
110
} else {
111
111
state . init . push ( grouped ) ;
112
112
}
@@ -155,7 +155,7 @@ function serialize_class_directives(class_directives, element_id, context, is_at
155
155
if ( ! is_attributes_reactive && contains_call_expression ) {
156
156
state . init . push ( singular ) ;
157
157
} else if ( is_attributes_reactive || directive . metadata . dynamic || contains_call_expression ) {
158
- state . update . push ( { grouped, singular } ) ;
158
+ state . update . push ( { grouped } ) ;
159
159
} else {
160
160
state . init . push ( grouped ) ;
161
161
}
@@ -334,7 +334,6 @@ function serialize_element_spread_attributes(
334
334
}
335
335
} else {
336
336
context . state . update . push ( {
337
- singular : needs_select_handling ? undefined : standalone ,
338
337
grouped : inside_effect
339
338
} ) ;
340
339
}
@@ -414,7 +413,6 @@ function serialize_dynamic_element_attributes(attributes, context, element_id) {
414
413
const id = context . state . scope . generate ( 'spread_attributes' ) ;
415
414
context . state . init . push ( b . let ( id ) ) ;
416
415
context . state . update . push ( {
417
- singular : isolated ,
418
416
grouped : b . stmt (
419
417
b . assignment (
420
418
'=' ,
@@ -566,7 +564,7 @@ function serialize_element_attribute_update_assignment(element, node_id, attribu
566
564
if ( contains_call_expression && singular ) {
567
565
state . init . push ( singular ) ;
568
566
} else {
569
- state . update . push ( { singular , grouped } ) ;
567
+ state . update . push ( { grouped } ) ;
570
568
}
571
569
return true ;
572
570
} else {
@@ -710,7 +708,6 @@ function serialize_update_assignment(state, id, init, value, assignment, contain
710
708
if ( assignment . skip_condition ) {
711
709
if ( assignment . singular ) {
712
710
state . update . push ( {
713
- singular : assignment . singular ,
714
711
grouped : assignment . grouped
715
712
} ) ;
716
713
} else {
@@ -723,7 +720,6 @@ function serialize_update_assignment(state, id, init, value, assignment, contain
723
720
if ( assignment . singular ) {
724
721
state . init . push ( b . var ( id , init ) ) ;
725
722
state . update . push ( {
726
- singular : assignment . singular ,
727
723
grouped
728
724
} ) ;
729
725
} else {
@@ -1279,10 +1275,6 @@ function get_template_function(namespace, state) {
1279
1275
* @param {import('../types.js').ComponentClientTransformState } state
1280
1276
*/
1281
1277
function serialize_render_stmt ( state ) {
1282
- if ( state . update . length === 1 && state . update [ 0 ] . singular ) {
1283
- return state . update [ 0 ] . singular ;
1284
- }
1285
-
1286
1278
return b . stmt ( b . call ( '$.render_effect' , b . thunk ( b . block ( state . update . map ( ( n ) => n . grouped ) ) ) ) ) ;
1287
1279
}
1288
1280
0 commit comments