(storeOrStoreId, deletable, then = getUndefined, thenDeps = EMPTY_ARRAY, ...args)
| 406 | var argsOrGetArgs = (args, store, parameter) => arrayMap(args, (arg) => isFunction(arg) ? arg(parameter, store) : arg); |
| 407 | var nonFunctionDeps = (args) => arrayFilter(args, (arg) => !isFunction(arg)); |
| 408 | var useDel = (storeOrStoreId, deletable, then = getUndefined, thenDeps = EMPTY_ARRAY, ...args) => { |
| 409 | const store = useStoreOrStoreById(storeOrStoreId); |
| 410 | return useCallback( |
| 411 | (parameter) => then(store?.[DEL + deletable](...argsOrGetArgs(args, store, parameter))), |
| 412 | // eslint-disable-next-line react-hooks/exhaustive-deps |
| 413 | [store, deletable, ...thenDeps, ...nonFunctionDeps(args)] |
| 414 | ); |
| 415 | }; |
| 416 | var useCheckpointAction = (checkpointsOrCheckpointsId, action, arg) => { |
| 417 | const checkpoints = useCheckpointsOrCheckpointsById( |
| 418 | checkpointsOrCheckpointsId |
no test coverage detected
searching dependent graphs…