-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
The point of <Portal> is to pass children to it (that are rendered somewhere else). And props.children !== prevProps.children always, right? If so, doesn't this mean that the for-if check in componentDidUpdate always triggers?
preact-portal/src/preact-portal.js
Lines 10 to 16 in ba21279
| componentDidUpdate(props) { | |
| for (let i in props) { | |
| if (props[i]!==this.props[i]) { | |
| return setTimeout(this.renderLayer); | |
| } | |
| } | |
| } |
Metadata
Metadata
Assignees
Labels
No labels