-
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][Embed Block] Fix loading glitch with resolver resolution approach #35798
Conversation
Size Change: 0 B Total Size: 1.07 MB ℹ️ View Unchanged
|
I'd like to note that the original issue can also be reproduced in the web editor, although in this case, the glitch is almost unnoticeable (see attached video recorded at slowmo). Click here to display the videoKapture.2021-10-20.at.12.01.06.mp4On one frame (00:05), we can see that the embed is reporting that the content couldn't be embedded but in the next frame, the preview is loading. We might consider applying the same approach in the web version of the embed 🤔 . |
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.
Thanks for this slick glitch fix @fluiddot 🥇 I was able to verify that the issue no longer occurs on iOS or Android. LGTM 🚢
For the web, I wasn't able to reproduce but I think that is because my internet connection is good so the preview appeared instantaneously. Is Network Link Conditioner something you utilize to throttle network speed?
Not sure if it would be easier to reproduce it by throttling the network speed, I haven't tested this approach. In my case what I did was to record a video and check frame by frame 😅 .
Ok, I'll open a new PR applying the fix to the web version 👍 . |
@jd-alexander I've just opened the GB-mobile PR, let me know if you could take a look at it, thanks 🙇 . |
Sure, will do! |
…pproach (#35798) * Update logic of fetching calculation * Update react-native-editor changelog
Gutenberg Mobile PR: wordpress-mobile/gutenberg-mobile#4146
Description
This PR reverts the changes introduced in #33574 for fixing a loading glitch, and applies a different approach using the
hasFinishedResolution
selector to determine if the embed preview is being fetched.NOTE: These changes were motivated by the findings posted in this comment after debugging deeper the issue.
How has this been tested?
Follow the testing instructions from the reverted PR #33574 and verify that the original issue is not happening.
Screenshots
N/A
Types of changes
Checklist:
*.native.js
files for terms that need renaming or removal).