-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Annotations & Performance: remove use of Memize #14664
Conversation
f4c6ffb
to
7399888
Compare
@@ -25,6 +25,7 @@ | |||
"@wordpress/compose": "file:../compose", | |||
"@wordpress/data": "file:../data", | |||
"@wordpress/escape-html": "file:../escape-html", | |||
"@wordpress/hooks": "file:../hooks", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw this dependency was missing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've done a quick code review and this makes sense conceptually.
Also, I've tested with Yoast SEO and everything still works quick. 🎉 Great work!
382baa8
to
e457a8b
Compare
Thanks @atimmer for the review! |
@@ -27,7 +27,6 @@ | |||
"@wordpress/i18n": "file:../i18n", | |||
"@wordpress/rich-text": "file:../rich-text", | |||
"lodash": "^4.17.11", | |||
"memize": "^1.0.5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
package-lock.json
should have been updated as a result of this change. There's local revisions after running npm install
in master.
Aside: Travis should be catching this, and it's unclear why it's not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #14808
Description
Split out from #14641.
Some functions were memoized in #12161, because new array and objects are returned as props. We can avoid this by prefixing the prop keys (as is already done in one case).
How has this been tested?
Screenshots
Types of changes
Checklist: