Skip to content

Commit 88bd178

Browse files
committed
feat: add withUpdate lifecycle mixin from SkateJS to base Bolt component class
1 parent 37f6b88 commit 88bd178

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/renderers/renderer-hyperhtml.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// HyperHTML Renderer ported to SkateJS
22
import {
33
withComponent,
4+
withUpdate,
45
shadow,
56
props,
67
} from 'skatejs';
@@ -10,7 +11,7 @@ import { findParentTag } from '../utils/find-parent-tag';
1011

1112

1213
export function BoltComponent(Base = HTMLElement) {
13-
return class extends withComponent(Base) {
14+
return class extends withUpdate(withComponent(Base)) {
1415

1516
static props = {
1617
onClick: props.string,

0 commit comments

Comments
 (0)