(getCheckpointId, getCheckpointIdDeps = EMPTY_ARRAY, checkpointsOrCheckpointsId, then = getUndefined, thenDeps = EMPTY_ARRAY)
| 1189 | var useGoBackwardCallback = (checkpointsOrCheckpointsId) => useCheckpointAction(checkpointsOrCheckpointsId, "goBackward"); |
| 1190 | var useGoForwardCallback = (checkpointsOrCheckpointsId) => useCheckpointAction(checkpointsOrCheckpointsId, "goForward"); |
| 1191 | var useGoToCallback = (getCheckpointId, getCheckpointIdDeps = EMPTY_ARRAY, checkpointsOrCheckpointsId, then = getUndefined, thenDeps = EMPTY_ARRAY) => { |
| 1192 | const checkpoints = useCheckpointsOrCheckpointsById( |
| 1193 | checkpointsOrCheckpointsId |
| 1194 | ); |
| 1195 | return useCallback( |
| 1196 | (parameter) => ifNotUndefined( |
| 1197 | checkpoints, |
| 1198 | (checkpoints2) => ifNotUndefined( |
| 1199 | getCheckpointId(parameter), |
| 1200 | (checkpointId) => then(checkpoints2.goTo(checkpointId), checkpointId) |
| 1201 | ) |
| 1202 | ), |
| 1203 | // eslint-disable-next-line react-hooks/exhaustive-deps |
| 1204 | [checkpoints, ...getCheckpointIdDeps, ...thenDeps] |
| 1205 | ); |
| 1206 | }; |
| 1207 | var useUndoInformation = (checkpointsOrCheckpointsId) => { |
| 1208 | const checkpoints = useCheckpointsOrCheckpointsById( |
| 1209 | checkpointsOrCheckpointsId |
nothing calls this directly
no test coverage detected
searching dependent graphs…