MCPcopy
hub / github.com/facebook/react / tabifyCached

Function tabifyCached

compiler/apps/playground/components/Editor/Output.tsx:219–228  ·  view source on GitHub ↗
(
  store: Store,
  compilerOutput: CompilerOutput,
)

Source from the content-addressed store, hash-verified

217}
218
219function tabifyCached(
220 store: Store,
221 compilerOutput: CompilerOutput,
222): Promise<Map<string, ReactNode>> {
223 const cached = tabifyCache.get(store);
224 if (cached) return cached;
225 const result = tabify(store.source, compilerOutput, store.showInternals);
226 tabifyCache.set(store, result);
227 return result;
228}
229
230function Fallback(): JSX.Element {
231 return (

Callers 1

OutputContentFunction · 0.85

Calls 3

tabifyFunction · 0.85
setMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected