The widget was mapping every single card, even if it wasn't in use. So if the card list had a million cards, it would map every card, and this would cost very high computational processing (O(n)). So to avoid mapping unnecessary cards, show only the cards that are useful: the front card and the back card
Description
The widget was mapping every single card, even if it wasn't in use. So if the card list had a million cards, it would map every card, and this would cost very high computational processing (
O(n)
). So to avoid mapping unnecessary cards, show only the cards that are useful: the front card and the back card