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

Function previousShellPath

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

Source from the content-addressed store, hash-verified

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