State
/ ConceptsState
/ ConceptsModel
The model describes the initial state of a store. It can be composed of any shape.
If no model is provided, the initial state will be set to undefined.
type Model = any
Example
// primitives
const model = 0
const model = 'Some text'
// arrays
const model = ['First Todo', 'Second Todo', 'Third Todo']
// objects
const model = {
loading: false,
error: null,
data: null,
}
© 2024-present Robin Weser. All Rights Reserved.