-
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
mapValues: use fromEntries, avoid re-creating object in each reducer call #51159
Conversation
Size Change: -11 B (0%) Total Size: 1.39 MB
ℹ️ View Unchanged
|
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.
Nice, thanks 👍
Flaky tests detected in 928c5a5. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5143294879
|
Improves the
mapValues
implementation in thecreateReduxStore
code. Instead of constructing a new object in eachreduce
iteration, we use thefromEntries( toEntries.map )
pattern.