MCPcopy
hub / github.com/Zizzamia/perfume.js / trackUJNavigation

Function trackUJNavigation

src/steps/navigationSteps.ts:120–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118 * backwards in journey.
119 */
120export 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};

Callers 1

navSteps.spec.tsFile · 0.90

Calls 1

Tested by

no test coverage detected