Skip to content
This repository was archived by the owner on Dec 31, 2020. It is now read-only.
This repository was archived by the owner on Dec 31, 2020. It is now read-only.

V6 Question about PureComponents #838

@creambyemute

Description

@creambyemute

Hey there,

We just upgraded from 5.4.4 to 6.1.8 and I checked the changelogs to see if we have to adapt something.

We're still using Inject, planning on refactoring this for the new recommended way.

Question:
On the Changelog for 6.0.0 there is a mention of Using PureComponent is now recommended for class-based components or React.memo for functional ones..

Does this mean, that if I have a observer Class Based Component SearchIconBase extends React.Component<Props> inject("rootStore")(observer(SearchIconBase)), that we should switch to extends React.PureComponent<Props>?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions