So I've been trying out a bit of Svelte for the last past week. I wanted to have some simple component, let's say a counter that will be managed by a store (the same way it is shown on the API documentation). I will also have a component for a todo list with his own store and another one that will throw random facts again with his own store.
Now I want to have a big main object, something like:
const bigObject = {
counter,
todos,
randomFact
}
I am able to get that object with the initial values from my components but I can't make it reactive, meaning that if I update the counter value, or request another random fact, I want the bigObject to be update with those news values...
How do you guys approach this situations?
Thanks,