I put my cart count in a store: the product card writes to it, the badge reads it, and both update on every click.
https://luna-park.app #webdev #frontend
I put my cart count in a store: the product card writes to it, the badge reads it, and both update on every click. https://luna-park.app #webdev #frontend
0 vue
Publié le 03/11/2026 14:02
0:30
I put my cart count in a store: the product card writes to it, the badge reads it, and both update on every click.
https://luna-park.app #webdev #frontend
1 commentaire
?
Nice reactive pattern. Using a centralized store for state sync is clean. Have you considered wrapping that in a custom hook or an observable for even less boilerplate? Clean execution! 🚀