Interface Config<S>
interface Config<S extends BaseObjectEntryStore<any>> {
childDebounce?: number;
crudDispatch?: CrudDispatch<ExtractDataType<S>>;
dataReducer?: boolean;
defaultData?: ExtractDataType<S>[];
extraData?: { [key: string]: any };
manualUpdate?: boolean;
StoreClass: new (...args: any[]) => S;
}
childDebounce?: number;
crudDispatch?: CrudDispatch<ExtractDataType<S>>;
dataReducer?: boolean;
defaultData?: ExtractDataType<S>[];
extraData?: { [key: string]: any };
manualUpdate?: boolean;
StoreClass: new (...args: any[]) => S;
}
Type Parameters
- S extends BaseObjectEntryStore<any>
Hierarchy
Index
Properties
OptionalchildDebounce
childDebounce?: number
An integer between and including 0 - 1000; a debounce time in milliseconds for child store subscriptions to
invoke ArrayObjectStore.updateSubscribers notifying subscribers to this array store. Default
value: 250.
OptionalcrudDispatch
Optional dispatch function to receive C(R)UD updates on create, update, delete actions.
OptionaldataReducer
dataReducer?: boolean
When true a DynArrayReducer will be instantiated wrapping store data and accessible from
ArrayObjectStore.dataReducer; default value: false.
OptionaldefaultData
An array of default data objects.
OptionalextraData
extraData?: { [key: string]: any }
Optional additional data that is dispatched with CrudDispatch callbacks.
OptionalmanualUpdate
manualUpdate?: boolean
When true ArrayObjectStore.updateSubscribers must be invoked with a single boolean parameter for
subscribers to be updated; default value: false.
StoreClass
The entry store class that is instantiated.
Store type.