-
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
Components: Delete the createComponent
utility function
#34929
Components: Delete the createComponent
utility function
#34929
Conversation
@@ -1,70 +0,0 @@ | |||
/** |
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.
Not sure if these tests have any value even without the createComponent
function — should we potentially keep / move them, instead of deleting them?
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.
Hmmm, I guess if we wanted to keep these tests we could create a function that generates a generic test suite for any component that follows that general pattern of passing hook props to View
. Not sure if there's much value in that though.
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.
Yeah, not sure if there's much value in doing that. I guess we can just delete these tests.
a4df6e2
to
4660e50
Compare
Size Change: 0 B Total Size: 1.06 MB ℹ️ View Unchanged
|
@@ -16,7 +16,8 @@ | |||
|
|||
### Internal | |||
|
|||
- Renamed `PolymorphicComponent*` types to `WordPressComponent*` ([#34330](https://github.com/WordPress/gutenberg/pull/34330)) | |||
- Renamed `PolymorphicComponent*` types to `WordPressComponent*` ([#34330](https://github.com/WordPress/gutenberg/pull/34330)). | |||
- Deleted the `createComponent` utility function ([#34929](https://github.com/WordPress/gutenberg/pull/34929)). |
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.
This should be under Unreleased, no? I don't suppose it's going to trip anyone up though. I happened to notice this when I went to make a changelog edit in #35020 and we could update it in that PR if you'd like.
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.
You're correct — I missed that Unreleased
header. Well spotted!
I went to make a changelog edit in #35020 and we could update it in that PR if you'd like
That would be great, thank you
Description
Fixes #34290.
This PR requires all of the other PRs listed in #34920 to be merged first.
How has this been tested?
Project builds successfully, there are no usages left of
createComponent
in the whole repositoryTypes of changes
Cleanup (deleting unused code)
Checklist:
*.native.js
files for terms that need renaming or removal).