Is there a reason for TurboImage having onFailure instead of onError callback? #418
Pauligrinder
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi!
I just wrote a quick image wrapper component so I can quickly change components to test which is the best in our app (in the consideration of migrating from FastImage to TurboImage or possibly even something completely different).
The wrapper takes standard Image props and puts them into the used components' required format. Mostly the props are the same, but I noticed that TurboImage doesn't have an onError callback - instead it has onFailure, which seems to do exactly the same thing. Why is it named differently? It's not exactly a big deal, but it would be nice if it would mostly support the standard image props format!
All reactions