Interface DispatchOptions

Typing for options that can be passed to the dispatch function.


  • DispatchOptions


Optional bypassDebounce

bypassDebounce: boolean

Set it to true to bypass dispatch debounce.
It can be useful if the Unit was configured with UnitConfig.dispatchDebounce.

Optional cacheReplace

cacheReplace: boolean

Set it to true to replace the value in cached-values at the current {@link UnitConfig.cacheIndex}.

Optional force

force: boolean

Set it to true to bypass UnitConfig.distinctDispatchCheck and UnitConfig.customDispatchCheck.
It can't bypass a frozen Unit, or Unit's value type check.
e.g. It can't make a ListUnit accept a non-array value.