Skip to content

Commit 6c715f4

Browse files
committed
remove block.d
1 parent ad78bcd commit 6c715f4

File tree

4 files changed

+3
-13
lines changed

4 files changed

+3
-13
lines changed
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
/** @returns {import('#client').Block} */
22
export function create_block() {
3-
return {
4-
// dom
5-
d: null
6-
};
3+
return {};
74
}

packages/svelte/src/internal/client/dom/template.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ function close_template(dom, is_fragment, anchor) {
193193
}
194194

195195
/** @type {import('#client').Effect} */ (current_effect).dom = current;
196-
/** @type {import('#client').Block} */ (current_block).d = current;
197196

198197
return current;
199198
}

packages/svelte/src/internal/client/render.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,7 @@ function _mount(Component, options) {
212212
should_intro = options.intro ?? false;
213213

214214
/** @type {import('#client').Block} */
215-
const block = {
216-
// dom
217-
d: null
218-
};
215+
const block = {};
219216

220217
/** @type {Exports} */
221218
// @ts-expect-error will be defined because the render effect runs synchronously

packages/svelte/src/internal/client/types.d.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ export type TemplateNode = Text | Element | Comment;
5151

5252
export type Dom = TemplateNode | TemplateNode[];
5353

54-
export interface Block {
55-
/** dom */
56-
d: null | Dom;
57-
}
54+
export interface Block {}
5855

5956
export type EachState = {
6057
/** flags */

0 commit comments

Comments
 (0)