MCPcopy Create free account
hub / github.com/dailydotdev/apps / previousShellPath

Function previousShellPath

packages/shared/src/components/shell/shellNav.ts:332–335  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

330
331// The page the current one was opened from, as this tab's stack recorded it.
332export const previousShellPath = (): string | undefined => {
333 const { routes, pointer } = readStack();
334 return routes[pointer - 1]?.path;
335};
336
337export const isFeedEditPath = (pathname: string): boolean => {
338 const path = withoutLayoutVariantPrefix(pathname ?? '');

Callers 2

shellNav.spec.tsFile · 0.90
EditPostInComposerFunction · 0.90

Calls 1

readStackFunction · 0.85

Tested by

no test coverage detected