Configuration
Inline / per-instance configuration
// Unit configuration
const aUnit = new GenericUnit({cacheSize: 10, immutable: true, persistent: true})
// Action configuration
const anAction = new Action({initialValue: 'START'})
// AsyncSystem configuration
const anAsyncSystem = new AsyncSystem({
freezeQueryWhilePending: true,
// it overrides AsyncSystem's member Units' config
// it applies to all three GenericUnits and one BoolUnit
UNITS: {cacheSize: 3},
// it overrides common UNITS config above, applies to dataUnit only
DATA_UNIT: {cacheSize: 4}
})Global configuration
Hierarchy of configuration
Notes
Last updated
Was this helpful?