Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use shallowEqual and isEmpty as much as possible#540

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
itsmichaeldiego merged 6 commits intomasterfromshallow-compare-objects
Mar 13, 2018

Conversation

itsmichaeldiego
Copy link
Member

PR#440 Inspired me to useshallowCompare as much as possible to compare objects, mostly betweenprops andnextProps orprevProps.

Also, we were doing many checks by!== undefined or=== undefined, where we could just check withisEmpty, who also checks for the object being an empty string ('') ornull. Which makes the code more solid.

@itsmichaeldiegoitsmichaeldiego changed the titleUse shallowCompare and isEmpty as much as possibleUse shallowEqual and isEmpty as much as possibleMar 13, 2018
@itsmichaeldiegoitsmichaeldiego merged commit486bccf intomasterMar 13, 2018
@itsmichaeldiegoitsmichaeldiego deleted the shallow-compare-objects branchMarch 13, 2018 23:59
@lock
Copy link

lockbot commentedDec 1, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@locklockbot locked asresolvedand limited conversation to collaboratorsDec 1, 2019
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@istarkovistarkovAwaiting requested review from istarkov

Assignees

@itsmichaeldiegoitsmichaeldiego

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@itsmichaeldiego

[8]ページ先頭

©2009-2025 Movatter.jp