Skip to content
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

it not have onError or onLoad method #95

Open
tmxiong opened this issue Mar 17, 2018 · 2 comments
Open

it not have onError or onLoad method #95

tmxiong opened this issue Mar 17, 2018 · 2 comments

Comments

@tmxiong
Copy link

tmxiong commented Mar 17, 2018

it not have onError or onLoad method, How do I judge whether web pages have been loaded or failed?

@lucasferreira
Copy link
Owner

Hi @tmxiong

I think tath if you use the onNavigationStateChange event-method you could monitor de event argument and discover the 'loaded' moment of your URL.

@jeremy8883
Copy link

jeremy8883 commented Aug 29, 2018

Looking at the navState object that we get back from onNavigationStateChange, it looks like this:

{
  canGoBack: false
  canGoForward: false
  loading: false
  title: ""
  url: "https://mywebsite.com/"
}

So it works well for detecting the loading state, but it doesn't seem to show me when an error has occurred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants