developit / preact-shadow-root Goto Github PK
View Code? Open in Web Editor NEWđ´ Render a Preact subtree into the Shadow DOM.
Home Page: https://npm.im/preact-shadow-root
đ´ Render a Preact subtree into the Shadow DOM.
Home Page: https://npm.im/preact-shadow-root
đ¨ You need to enable Continuous Integration on all branches of this repository. đ¨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didnât receive a CI status on the greenkeeper/initial
branch, itâs possible that you donât have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.
If you have already set up a CI for this repository, you might need to check how itâs configured. Make sure it is set to run on all new branches. If you donât want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, youâll need to re-trigger Greenkeeperâs initial pull request. To do this, please delete the greenkeeper/initial
branch in this repository, and then remove and re-add this repository to the Greenkeeper Appâs white list on Github. You'll find this list on your repo or organizationâs settings page, under Installed GitHub Apps.
đ¨ You need to enable Continuous Integration on all branches of this repository. đ¨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didnât receive a CI status on the greenkeeper/initial
branch, itâs possible that you donât have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.
If you have already set up a CI for this repository, you might need to check how itâs configured. Make sure it is set to run on all new branches. If you donât want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, youâll need to re-trigger Greenkeeperâs initial pull request. To do this, please delete the greenkeeper/initial
branch in this repository, and then remove and re-add this repository to the Greenkeeper Appâs white list on Github. You'll find this list on your repo or organizationâs settings page, under Installed GitHub Apps.
this.base
is undefined
at componentDidMount
, so this.shadow
never gets initialized.props.children[0]
is undefined
, since children
isnât always an array anymore.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",
đ¨ You need to enable Continuous Integration on all branches of this repository. đ¨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didnât receive a CI status on the greenkeeper/initial
branch, itâs possible that you donât have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.
If you have already set up a CI for this repository, you might need to check how itâs configured. Make sure it is set to run on all new branches. If you donât want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, youâll need to re-trigger Greenkeeperâs initial pull request. To do this, please delete the greenkeeper/initial
branch in this repository, and then remove and re-add this repository to the Greenkeeper Appâs white list on Github. You'll find this list on your repo or organizationâs settings page, under Installed GitHub Apps.
đ¨ You need to enable Continuous Integration on all branches of this repository. đ¨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didnât receive a CI status on the greenkeeper/initial
branch, itâs possible that you donât have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.
If you have already set up a CI for this repository, you might need to check how itâs configured. Make sure it is set to run on all new branches. If you donât want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, youâll need to re-trigger Greenkeeperâs initial pull request. To do this, please delete the greenkeeper/initial
branch in this repository, and then remove and re-add this repository to the Greenkeeper Appâs white list on Github. You'll find this list on your repo or organizationâs settings page, under Installed GitHub Apps.
đ¨ You need to enable Continuous Integration on all branches of this repository. đ¨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didnât receive a CI status on the greenkeeper/initial
branch, itâs possible that you donât have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.
If you have already set up a CI for this repository, you might need to check how itâs configured. Make sure it is set to run on all new branches. If you donât want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, youâll need to re-trigger Greenkeeperâs initial pull request. To do this, please delete the greenkeeper/initial
branch in this repository, and then remove and re-add this repository to the Greenkeeper Appâs white list on Github. You'll find this list on your repo or organizationâs settings page, under Installed GitHub Apps.
Doesn't work for me. Failed with this error:
preact-shadow-root.es.js:17 Uncaught (in promise) TypeError: Cannot read property 'firstChild' of undefined
at o.update (preact-shadow-root.es.js:17)
at o.shouldComponentUpdate (preact-shadow-root.es.js:8)
at A (index.js?c988:113)
at eval (children.js?b0ec:95)
at x (children.js?b0ec:252)
at x (children.js?b0ec:254)
at b (children.js?b0ec:43)
at $ (index.js?c988:347)
at A (index.js?c988:205)
at eval (children.js?b0ec:95)
Checking in to see if this library is still needed/recommended, since I see some references to the shadow DOM on the main docs: https://preactjs.com/guide/v10/web-components/#passing-slots-as-props
A declarative, efficient, and flexible JavaScript library for building user interfaces.
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. đđđ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google â¤ď¸ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.