Skip to content

Commit c154895

Browse files
committed
init $$ in component with empty object value
1 parent 5ad396b commit c154895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/internal/Component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ if (typeof HTMLElement === 'function') {
224224
}
225225

226226
export class SvelteComponent {
227-
$$: T$$;
227+
$$: T$$ = {} as T$$;
228228
$$set?: ($$props: any) => void;
229229

230230
$destroy() {

0 commit comments

Comments
 (0)