-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
this.baseisundefinedatcomponentDidMount, sothis.shadownever gets initialized.props.children[0]isundefined, sincechildrenisn’t always an array anymore.- The third argument to
render()should be removed, as per the Preact X upgrade docs.
I run the following replacements on my bundle as a workaround:
// Hacks to make `preact-shadow-root` work with Preact 10.
"this.base&&this.base.parentNode": "this.__P",
"o.children[0],": "o.children,",
"this.shadow.firstChild": "undefined",friedrichroell and developitfriedrichroell and developit
Metadata
Metadata
Assignees
Labels
No labels