()
| 118 | * backwards in journey. |
| 119 | */ |
| 120 | export const trackUJNavigation = () => { |
| 121 | // navigationSteps are 0-index based, so size will give us the next key value |
| 122 | const navigationLength = Object.keys(steps.navigationSteps).length; |
| 123 | steps.navigationSteps[navigationLength] = {}; |
| 124 | |
| 125 | // when navigating, we should notify the user in case stale steps are |
| 126 | // removed from the state during navigations |
| 127 | const activeSteps = getActiveStepsFromNavigationSteps(); |
| 128 | config.onMarkStep?.('', Object.keys(activeSteps)); |
| 129 | }; |
no test coverage detected