MCPcopy Create free account
hub / github.com/alibaba/lowcode-engine / contextFactory

Function contextFactory

packages/renderer-core/src/context/index.ts:4–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3
4export default function contextFactory() {
5 const { createContext } = adapter.getRuntime();
6
7 let context = (window as any).__appContext;
8 if (!context) {
9 context = createContext({});
10 (window as any).__appContext = context;
11 }
12 return context;
13}

Callers 2

rendererFactoryFunction · 0.85
baseRendererFactoryFunction · 0.85

Calls 1

getRuntimeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…