(getCheckpointId, checkpointsOrCheckpointsId, then = getUndefined)
| 1035 | var useGoBackwardCallback = (checkpointsOrCheckpointsId) => useCheckpointAction(checkpointsOrCheckpointsId, "goBackward"); |
| 1036 | var useGoForwardCallback = (checkpointsOrCheckpointsId) => useCheckpointAction(checkpointsOrCheckpointsId, "goForward"); |
| 1037 | var useGoToCallback = (getCheckpointId, checkpointsOrCheckpointsId, then = getUndefined) => { |
| 1038 | const checkpoints = useCheckpointsOrCheckpointsById( |
| 1039 | checkpointsOrCheckpointsId |
| 1040 | ); |
| 1041 | return (parameter) => ifNotUndefined( |
| 1042 | getThing(checkpoints), |
| 1043 | (resolvedCheckpoints) => ifNotUndefined( |
| 1044 | getCheckpointId(parameter), |
| 1045 | (checkpointId) => then(resolvedCheckpoints.goTo(checkpointId), checkpointId) |
| 1046 | ) |
| 1047 | ); |
| 1048 | }; |
| 1049 | var useUndoInformation = (checkpointsOrCheckpointsId) => { |
| 1050 | const checkpoints = useCheckpointsOrCheckpointsById( |
| 1051 | checkpointsOrCheckpointsId |
nothing calls this directly
no test coverage detected
searching dependent graphs…