CAN should have a single state store¶
So CAN's handlers can access application state when needed, CAN should have a state store. The state store sdould listen to events to update its state when needed, and should allow read-only queries of its state.
Backlinks¶
- When a CAN scratchfile is addressed, check to see if the note is new
- This helps CAN decide what to tell the user; and how commands should respond based on context. CAN should have a single state store which can be queried about the latest state of the scratchfile. Commands won't be able to respond to CAN events so state becomes necessary at this point.