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

Function getFlatteredNodes

packages/shared/src/hooks/source/useSources.ts:38–42  ·  view source on GitHub ↗
({
  data,
}: Pick<UseSources<T>['result'], 'data'>)

Source from the content-addressed store, hash-verified

36}
37
38export function getFlatteredNodes<T extends Source | Squad>({
39 data,
40}: Pick<UseSources<T>['result'], 'data'>): Edge<T>[] {
41 return data?.pages.flatMap((page) => page.sources.edges) ?? [];
42}
43
44export function getFlatteredSources<T extends Source | Squad>({
45 data,

Callers 4

SquadsDirectoryFeedFunction · 0.90
SquadsPageFunction · 0.90
SquadCategoryPageFunction · 0.90
getFlatteredSourcesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected