HMVC or PAC - how to handle shared abstractions/models?
- by fig-gnuton
In HMVC/PAC, what's the recommended way to code if two or more triads/agents share a common model/abstraction?
Do you instantiate a new instance of that model wherever needed, and propogate a change in one to all the other instances via the controllers? Or do instantiate one model at some common upper level, and inject that instance wherever needed? (Or neither if I'm missing something fundamental about these patterns?)