-
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
Remove usages of withState from edit-post and editor #32349
Conversation
I also noticed that a lot of examples in docs use |
Yes. I tried to update a few |
ae49f48
to
aaf3bfd
Compare
Size Change: -45 B (0%) Total Size: 1.03 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.
LGTM 👍
Thanks for the PR. Worth noting that this HoC preceded React hooks :), funny how the API was very close. We could potentially consider adding a deprecation message there. |
I think deprecation got mentioned in another PR - #32326. |
Created PR for deprecation #32368. |
Removes usages of the
withState
HOC from three places that still use it. It's very easy to replace the HOC with theuseState
hook. Kind of demonstrates how antiquatedwithState
is today.After this patch,
withState
is used only inREADME.md
examples and in Storybook stories. No production code.