Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 668 Bytes

Machine best practices.md

File metadata and controls

21 lines (17 loc) · 668 Bytes

Machine best practices

  1. Name your actions and declare them in setup with their implementation

  2. Organize your files in a structure like the following name (permissions, application lifecycle, etc) ├── .machine.ts ├── .types.ts ├── .actions.ts ├── .actors.ts

  3. Should we have every actor declared in a system???

  • PROS
    • system.get works
    • everything is explicit
    • you can simulate everything in that actor system headlessly
  • CONS
    • Complexity...
  1. Should we use emit? I don't think so, because it causes implicit dependencies at the cost of convenience