-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[RNMobile] Update theme updates to use the approach that guarantees delivery #30847
Conversation
Size Change: 0 B Total Size: 1.46 MB ℹ️ View Unchanged
|
Thanks for starting this @chipsnyder! Can you add a bit more context to this change?
Thank you! |
Hey @enejb 👋 Yup the change here is to modify The The way the bridge between native and ReactNative works means that certain calls can be lost while the editor initializes. So the The |
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.
Great work @chipsnyder 👍
This LGTM according to your explanation here and works as expected (tested via wordpress-mobile/WordPress-iOS#16282) 🎉
Thanks for the explanation @chipsnyder |
Fixes wordpress-mobile/gutenberg-mobile#3163
Related PRs:
📓 This PR can merge independent of any of the other changes.
Description
This is connected to the refactor work being done in wordpress-mobile/WordPress-iOS#16282. Previously the theme update events could be lost if the editor was still starting up and required a refresh call. With the "guaranteed" delivery that was added back in wordpress-mobile/gutenberg-mobile#2366, we can now set the theme and trust its delivery will happen.
How has this been tested?
This can be tested by running the regression test suite:
Types of changes
Bug Fix
Checklist:
*.native.js
files for terms that need renaming or removal).