Skip to content

renderLayer called on _every_ update? #17

@lydell

Description

@lydell

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?

componentDidUpdate(props) {
for (let i in props) {
if (props[i]!==this.props[i]) {
return setTimeout(this.renderLayer);
}
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions