Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Make PureComponent perform shallow equality check on state #377

Closed
wants to merge 1 commit into from
Closed

Make PureComponent perform shallow equality check on state #377

wants to merge 1 commit into from

Conversation

foxydevloper
Copy link

@foxydevloper foxydevloper commented Aug 5, 2022

Closes #376

This makes PureComponent perform a shallow equality check on state in shouldUpdate(). This is the same behavior as React and is what PureComponent was documented as actually supposed to do.

Checklist before submitting:

  • Added entry to CHANGELOG.md
  • Added/updated relevant tests
  • Added/updated documentation

@foxydevloper foxydevloper closed this by deleting the head repository Dec 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PureComponent doesn't actually compare state
1 participant