Skip to content

Commit 79ac09e

Browse files
committed
feat: update Preact renderer to match latest updates in Skate.js.
1 parent ebf4cd2 commit 79ac09e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/core/renderers/renderer-preact.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ function newVnode(vnode) {
1919
if (fn && fn.prototype instanceof HTMLElement) {
2020
if (!fn[preactNodeName]) {
2121
const prefix = fn.name;
22-
fn = class extends fn {};
23-
customElements.define((fn[preactNodeName] = name(prefix)), fn);
22+
customElements.define(
23+
(fn[preactNodeName] = name(prefix)),
24+
class extends fn {},
25+
);
2426
}
2527
vnode.nodeName = fn[preactNodeName];
2628
}

0 commit comments

Comments
 (0)