Learn / Glossary
Foldkit basics
| Term | Meaning | Guide |
|---|---|---|
| Model | One typed value holding your entire application state. | Quickstart |
| Message | One tagged event describing what happened, such as a click or server reply. | Quickstart |
update | Pure function taking the current Model and a Message to return the next Model. | Quickstart |
| Command | One-off side effect returned by update that reports back via a Message. | State model |
| Subscription | Ongoing work (timers, sockets) that starts and stops as Model fields change. | State model |
| Mount | DOM setup and cleanup tied to a single element's lifetime. | State model |
| Resource | Shared dependency (like a socket or client) scoped to a Model field. | Wiring |
| Submodel | A child state machine stored as a field inside a parent Model. | Bundle |
| Owner | The single authority allowed to change a datum or write to a view slot. | State model |