vigetlabs / microcosm

Flux with actions at center stage. Write optimistic updates, cancel requests, and track changes with ease.
http://code.viget.com/microcosm/
MIT License
487 stars 22 forks source link

WIP - Microcosm Agents #499

Closed nhunzaker closed 6 years ago

nhunzaker commented 6 years ago

I sort of hesitate to send this out, but this work creates a common abstraction between Domains and Entities: the Agent.

An agent is the baseline implementation of an object that manages some state (as a class instance) and can receive messages from a Microcosm history.

nhunzaker commented 6 years ago

No reason for this to depend on the json schema work. I'm going to pull this out into a separate PR focused just on agents.