-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Fix use of gradient hooks #23058
Fix use of gradient hooks #23058
Conversation
Size Change: +2.09 kB (0%) Total Size: 1.13 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! Tested it using Starter page templates, standard posts with the Buttons
block. Also checked on the local instance of web and all good!
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.
Awesome work @SergioEstevao!
Left one small comment :)
Tested on iOS with the gallery, image, and video blocks - everything works perfectly! 🎉
* Fix way prop insertBlockAfter is send. * Use HOC to wrap around gradient hook. * Improve gradient HOC to be more generic. * Revert "Fix way prop insertBlockAfter is send." This reverts commit e0d921d. * Make withGradient available to RN libs. * Move export of withGradient to the gradient folder.
Description
Change the way we use the
useGradient
methods on the RN Button to use an HOCwithGradient
.This was done because before we were using
useGradient
that is a hook on a non function component and we were seeing crashes after media insertion.How has this been tested?
Screenshots
Types of changes
Checklist: