Skip to content

关于"[强制]为非继承自PureComponent的纯组件实现shouldComponentUpdate方法" #45

@errorrik

Description

@errorrik

我觉得这个貌似强制不太好?因为如果没有办法很方便的判断是否组件需要更新(比如不是immutable无法===),实现shouldComponentUpdate的成本并不低,而且性能收益也不高,不如不实现?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions