Learn / Glossary
Foldkit
| Term | What it is |
|---|---|
| Model | The application's whole state, one value typed by a Schema. |
| Message | A tagged value naming something that happened. The union of them is everything that can. |
update | The one pure function from a Model and a Message to the next Model and some Commands. |
| Command | One-shot work caused by a transition. Runs once, then reports back as a Message. |
| Subscription | Ongoing work whose lifetime follows Model state. Scoped by a slice; restarts when that slice changes. |
| Mount | Element-scoped imperative work. Emits Messages while the element is live; cleans up on unmount. |
| Resource / ManagedResource | A dependency shared with Commands and Subscriptions. A ManagedResource's lifetime follows a Model slice. |
| Submodel | A child state machine whose state is a field of the parent Model and whose Messages are a variant of the parent's. |
| Owner | The one authoritative source for a datum. Every package in this repository is built around there being exactly one. |