-
Notifications
You must be signed in to change notification settings - Fork 4
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
[Suggestion] Add an onError handler to <collage-fragment> #40
Comments
Hi @goloroden, I think, this is a very good suggestion. Have you any thoughts about the interface? I think about something like making it configurable with a timeout value or so. |
Hmmm… 🤔 I think there are multiple cases we need to discuss:
Some of them are obvious (e.g., DNS can't be resolved), some of them are open to interpretation (e.g., what does a So, maybe we need more than one additional callback. Just to give an idea:
Does that make sense? |
Hi @goloroden. Sorry for the late response! I like the We took this feature into our next milestone. But for now we can not say, when we implement it. |
Hey @kirchsuSICKAG, thanks for the update 😊 Regarding the To cut it short: IMHO keep it simple. |
The
<collage-fragment>
web component provides a few lifecycle methods, such asonLoaded
. While this is fine, I was wondering if it would be possible to control the behavior in case loading the iframe fails, e.g. because of a network error, or if the targeted server returns a 404.Would it be possible to add an
onError
handler, where one might control what should happen in these cases?The text was updated successfully, but these errors were encountered: