-
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
Rename list view prop expandNested
to isExpanded
#40731
Conversation
Size Change: -144 B (0%) Total Size: 1.23 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.
The renaming makes sense to me!
Just a consideration — in the @wordpress/components
package we would need to be more careful when renaming props (as they would introduce breaking changes), but I assume that in the block-editor
and edit-site
packages the rules are more relaxed?
Probably better to get a second pair of eyes on this to make sure :)
@ciampo Thanks for the review 👍 Totally agree about not modifying public APIs without a proper deprecation strategy. Currently listView is exposed as |
@talldan Any chance you would be the "second pair of eyes" on this one? |
packages/edit-site/src/components/sidebar/navigation-menu-sidebar/navigation-menu.js
Outdated
Show resolved
Hide resolved
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.
LGTM 🎉
What?
Renames the
expandNested
prop of<ListView>
toisExpanded
.Why?
This was discussed at length in #39486 (comment) and it was decided to rename the prop.
How?
Do the prop renaming. Rename intermediate vars to take account of the resulting naming clash.
Testing Instructions
true
gutenberg/packages/block-editor/src/components/list-view/index.js
Line 75 in dd7db32
Screenshots or screencast