You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
hzuhyb
changed the title
Unable to listen for route changes for single-page applications
When the web page in WebView uses "history.pushState ()" to change URL, "onNavigationStateChange" does not execute
Oct 4, 2018
hzuhyb
changed the title
When the web page in WebView uses "history.pushState ()" to change URL, "onNavigationStateChange" does not execute
"onNavigationStateChange" Unable to listen for route changes for single-page applications
Oct 4, 2018
I use onNavigationStateChange to monitor the change of URL:
onNavigationStateChange = (navState) => { console.log(navState) }
however, it will not be called if the page your WKWebView is trying to open is a SPA.
Environment
Steps to Reproduce
1.WKWebView opens https://eos.live and logs in
2.Click to jump to other pages
When the web page in WKWebView uses history.pushState () to change URL, onNavigationStateChange does not execute
Expected Behavior
onNavigationStateChange executes after each URL change
Actual Behavior
onNavigationStateChange does not execute every time URL changes
Reproducible Demo
The text was updated successfully, but these errors were encountered: