jake-knerr / cogent

A simple design pattern for JavaScript frontend development.
2 stars 0 forks source link

State #61

Open jake-knerr opened 1 month ago

jake-knerr commented 1 month ago

Broadly speaking, there are 2 distinct types of state. business data and view-related state. Keep business data and logic in the services and keep all the other state in the components and state managers.

jake-knerr commented 1 month ago

Use a router to communicate view-state related data between different components and to capture a reloadable state.