Skip to content

Commit

Permalink
init $$ in component with empty object value
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanhofer committed Nov 12, 2020
1 parent 5ad396b commit c154895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/internal/Component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ if (typeof HTMLElement === 'function') {
}

export class SvelteComponent {
$$: T$$;
$$: T$$ = {} as T$$;
$$set?: ($$props: any) => void;

$destroy() {
Expand Down

0 comments on commit c154895

Please sign in to comment.