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

onLoad and onError actions #93

Closed
buschtoens opened this issue Jun 4, 2019 · 5 comments · Fixed by #274
Closed

onLoad and onError actions #93

buschtoens opened this issue Jun 4, 2019 · 5 comments · Fixed by #274

Comments

@buschtoens
Copy link
Owner

buschtoens commented Jun 4, 2019

{{lazy-mount
  this.engineName
  model=this.optionalDataForTheEngine
  onLoad=this.onLoad
  didLoad=this.didLoad
  onError=this.onError
}}
  • onLoad: () => void — Called, when the engine started loading
  • didLoad: () => void — Called, when the engine was successfully loaded
  • onError: (error: Error) => void — Called, when the engine failed to load
@jfrux
Copy link

jfrux commented Feb 22, 2020

definitely need me some of this...

buschtoens added a commit that referenced this issue Feb 22, 2020
buschtoens added a commit that referenced this issue Feb 22, 2020
@buschtoens
Copy link
Owner Author

Shipped as v0.7.0. Enjoy. 🥂

@jfrux
Copy link

jfrux commented Feb 23, 2020

@buschtoens Docs say it calls it when it "starts loading". But in general, onLoad indicates when something is fully loaded... right?

Just curious.

@jfrux
Copy link

jfrux commented Feb 23, 2020

My bad! I just saw the didLoad.

@buschtoens
Copy link
Owner Author

Good point though. onLoad conventionally means "done". I was contemplating that yesternight as well... 🤔

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

Successfully merging a pull request may close this issue.

2 participants