deckmaster
deckmaster copied to clipboard
Fix issue with LazyImage component getting stuck in English fallback …
…state
When the LazyImage component fails to load a localized card image it sets the fallback state to true and attempts the load the English version of the card. This state is not being reset when the card property changes which causes all subsequent image loads to be in English as well.
I just noticed, this may cause an infinite loop. I have not set up an environment to test this change yet and i will be traveling over the next couple of days.
I think we can instead add additional watches onto the card and back props instead of watching the computed src value.