Hi so I have two child component Cart and Orders in parent component App
Cart have mutations with variables A, B, C.
In the example we have :
$: books.refetch({A, B, C });
but $books query are also in the same component.
After this I want its sibling Order to update the orders.
Sorry for the late reply, basically you should either store the state in the parent App component or if they're not direct descendants then you could use svelte's context API
Hi so I have two child component Cart and Orders in parent component App
Cart have mutations with variables A, B, C. In the example we have : $: books.refetch({A, B, C }); but $books query are also in the same component. After this I want its sibling Order to update the orders.
How could I communicate between them?