-
Notifications
You must be signed in to change notification settings - Fork 24k
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
The use of postMessage will lead to WebView onLoadStart run Twice, #16547
Comments
same issue, received duplicate message... |
Yes, post message seems to change location/url of the window and hence resulting in multiple calls to onLoad, is there any way to avoid this? |
I do not have an answer, but I have found offending code which proves the assumptions https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/views/webview/ReactWebViewManager.java#L578 |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions. |
Unresolved, the problem still exists |
The problem still exists. |
This issue has been migrated to react-native-webview/react-native-webview#9 and can be closed. |
Closing in favor of new repo. Please keep discussing there 🚀 |
Is this a bug report?
Have you read the Contributing Guidelines?
Environment
Steps to Reproduce
Expected Behavior
LoadStart should be executed before loadEnd,As you can see from the diagram,
load end...
re executesload start
, and then does not executeload end
, which causes the state to be updated. It has always beenload start
The text was updated successfully, but these errors were encountered: