MCPcopy Create free account
hub / github.com/apitable/apitable / getInstance

Function getInstance

packages/core/src/modules/database/api/wasm/index.ts:123–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121};
122
123const getInstance = () => {
124 if (!isClient()) {
125 // @ts-ignore
126 // databus = databusWasmServer;
127 return databus;
128 }
129 if (!isInitialized()) {
130 throw new Error('databus not initialized');
131 }
132 return databus;
133
134};
135
136const getBrowserDatabusApiEnabled = () => {
137 if (!_global) {

Callers

nothing calls this directly

Calls 2

isClientFunction · 0.90
isInitializedFunction · 0.85

Tested by

no test coverage detected