Skip to content

Commit ed2981d

Browse files
authored
chore: simplify updates (#10922)
* remove if blocks around attribute updates * remove singular updates * simplify * get rid of text_effect * get rid of class_toggle_effect and style_effect * remove spread_attributes_effect * simplify * simplify * simplify * remove unused stuff * get rid of spread_dynamic_element_attributes_effect * remove set_custom_element_data_effect * unused import * more descriptive names
1 parent 456e50d commit ed2981d

File tree

9 files changed

+145
-405
lines changed

9 files changed

+145
-405
lines changed

packages/svelte/src/compiler/phases/3-transform/client/types.d.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,7 @@ export interface ComponentClientTransformState extends ClientTransformState {
3232
/** Stuff that happens before the render effect(s) */
3333
readonly init: Statement[];
3434
/** Stuff that happens inside the render effect */
35-
readonly update: {
36-
/** If the update array only contains a single entry, this singular entry will be used, if present */
37-
singular?: Statement;
38-
/** Used if condition for singular prop is false (see comment above) */
39-
grouped: Statement;
40-
}[];
35+
readonly update: Statement[];
4136
/** Stuff that happens after the render effect (control blocks, dynamic elements, bindings, actions, etc) */
4237
readonly after_update: Statement[];
4338
/** The HTML template string */

0 commit comments

Comments
 (0)