Skip to main content
Modular Documentation
Guides
Reference
Reference
@modular/sdk/state
2 exports in 2 groups.
Interfaces
1
StateFactory
interface
Call signature of state.
Values
1
state
const
Declare a piece of state your mod owns and persists. The value type is read off `TValue` by the authoring compiler, so the host can validate every write.