Function ctxDispatchToMultiEnumProps
- ctxDispatchToMultiEnumProps(dispatch): {
addItem: ((path, value) => void);
removeItem?: ((path, toDelete) => void);
handleChange(path, value): void;
} Parameters
- dispatch: Dispatch<unknown>
Returns {
addItem: ((path, value) => void);
removeItem?: ((path, toDelete) => void);
handleChange(path, value): void;
}
addItem: ((path, value) => void)
- (path, value): void
Returns void
Optional
removeItem?: ((path, toDelete) => void)
- (path, toDelete): void
Parameters
- path: string
- toDelete: any
Returns void
handleChange:function
- handleChange(path, value): void
Returns void
Update handler that emits a data change