I’m hoping to pick the brain of some people using the TALL stack on a regular basis. I’m just getting started and I am having trouble deciding with each component that I build whether I should make it completely independent (pulling in the information it needs on it’s own), or if I should pass in values via attributes that I got from a regular controller etc. When I see examples online, and when I look at already created livewire components such as the ones that come in the TALL ui preset, I often see both approaches.
To be more specific I want to clarify that I’m talking about normal data that I know is going to be on a page like an index from a resource etc. Should I be passing that collection into my livewire components or should I be just making my components fetch the data they need themselves?
I realize the answer will likely be to do both depending on the situation, but I’m looking for some guidance around this topic, and some rules of thumb etc.
Thanks!