Learn / Glossary

Foldkit basics

TermMeaningGuide
ModelOne typed value holding your entire application state.Quickstart
MessageOne tagged event describing what happened, such as a click or server reply.Quickstart
updatePure function taking the current Model and a Message to return the next Model.Quickstart
CommandOne-off side effect returned by update that reports back via a Message.State model
SubscriptionOngoing work (timers, sockets) that starts and stops as Model fields change.State model
MountDOM setup and cleanup tied to a single element's lifetime.State model
ResourceShared dependency (like a socket or client) scoped to a Model field.Wiring
SubmodelA child state machine stored as a field inside a parent Model.Bundle
OwnerThe single authority allowed to change a datum or write to a view slot.State model