Learn / Glossary

Foldkit

TermWhat it is
ModelThe application's whole state, one value typed by a Schema.
MessageA tagged value naming something that happened. The union of them is everything that can.
updateThe one pure function from a Model and a Message to the next Model and some Commands.
CommandOne-shot work caused by a transition. Runs once, then reports back as a Message.
SubscriptionOngoing work whose lifetime follows Model state. Scoped by a slice; restarts when that slice changes.
MountElement-scoped imperative work. Emits Messages while the element is live; cleans up on unmount.
Resource / ManagedResourceA dependency shared with Commands and Subscriptions. A ManagedResource's lifetime follows a Model slice.
SubmodelA child state machine whose state is a field of the parent Model and whose Messages are a variant of the parent's.
OwnerThe one authoritative source for a datum. Every package in this repository is built around there being exactly one.