MCPcopy Index your code
hub / github.com/atomicdata-dev/atomic-data-browser / getPropValTexts

Function getPropValTexts

react/src/useMarkdown.ts:47–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45
46 useEffect(() => {
47 async function getPropValTexts() {
48 let propValLines = '';
49 for await (const [prop, val] of resource.getPropVals()) {
50 if (!hiddenProps.includes(prop)) {
51 propValLines = propValLines + (await propertyLine(prop, val, store));
52 }
53 }
54 setMd(`# ${title}` + propValLines + '\n\n' + description);
55 }
56 getPropValTexts();
57 }, [resource]);
58

Callers 1

useMarkdownFunction · 0.85

Calls 2

propertyLineFunction · 0.85
getPropValsMethod · 0.80

Tested by

no test coverage detected