Hello!
I'm building a basic e-commerce website. Users can view products and add them to their cart.
The cart lives in the navigation client component (Svelte) which exists on every page. The product form client component (also Svelte) exists on the product page only.
I am in need of some ideas to update the state of the navigation client component so it then in turn triggers a UI update all the way from the product form client component. This way, when a user adds an item to their cart, the cart icon number updates.
In other words, I want to update an island's state from another island.
What options do I have to do something like this? I'm stumped.