AppState
or IAppState
, depending on the naming conventions used on your project.Note: We're usingreadonly
to ensure compile-time immutability, and it provides the simplest immutable implementation without adding more dependencies to clutter the examples. However, feel free to use another approach on your project that makes sense for your team.