TakaOtaku / Digimon-Card-App

Website to keep track of your Digimon Card Collection and Build Decks with it.
MIT License
29 stars 16 forks source link

Fix card counts not updating after filtering changes #541

Closed not-tomo closed 4 months ago

not-tomo commented 4 months ago

As noted in issue #529 , card counts in the card list fail to update when filters are changed, resulting in components displaying card counts from before the filter changes.

This is caused by a computed signal which updates when the deck contents change but not when the current card changes.

By switching to having the component update based on the card provided to the component rather than relying on the computed signal to detect a change in the deck, this issue is bypassed.

TakaOtaku commented 4 months ago

Thank you very much!