Aaron Waller
05/17/2022, 10:34 AMFilip Wiesner
05/17/2022, 10:49 AMSo I would have to pass those 5 onClick Lambdas 5 timesOr structure your UI hierarchy differently. By more leveraging "Slot API pattern" you could reduce the amount of nesting. And is it really that bad? Well, that depends on your use case but generally yes, it is. By passing a view model to your component, you are coupling it with that specific VM. What if you would want to use this component in different place? Or you would maybe refactor your VM in future removing some of the methods. You would also have to refactor your UI that shouldn't even know about existence of some view model in a first place. Like everything in programming it's finally up to you but these lint rules exist for a reason.
Leland Richardson [G]
05/17/2022, 2:04 PMCsabi Szenczi
05/17/2022, 2:05 PMFilip Wiesner
05/17/2022, 2:10 PMLeland Richardson [G]
05/17/2022, 3:11 PM