bensivo / mapo

0 stars 0 forks source link

Tech Debt: implement unidirectional data-flow for text-node service #10

Closed bensivo closed 3 months ago

bensivo commented 3 months ago

In the current implementation of the text-node service, the service manages events, state, and rendering all in one jumbled mess.

For long-term maintainability, we need to refactor this service so it follows an easier-to-understand pattern of:

  1. Receive event
  2. Update state
  3. Update UI