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

feat: support onLoad, onError and fallbackSource #3

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

sepperousseau
Copy link
Contributor

Hi @xerdnu ,

This is just a small PR.
To support onLoad en onError callbacks. Might come in handy?
Also I've added a fallback source. Cause now the error image was hardcoded require.

Let me know what you think 👍

xerdnu added a commit that referenced this pull request Oct 31, 2023
@xerdnu xerdnu merged commit c0c3420 into xerdnu:main Oct 31, 2023
@xerdnu
Copy link
Owner

xerdnu commented Oct 31, 2023

Looks really good! I just made a minor adjustment to include the static asset as a last resort if both the primary and fallbackSource fails. Also made some updates to the documentation 😄

@xerdnu xerdnu mentioned this pull request Oct 31, 2023
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

Successfully merging this pull request may close these issues.

2 participants