Best practices for state management and encapsulation - Solara