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

Method init

packages/widget-sdk/src/resource/service.ts:107–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105 }
106
107 init() {
108 if (this.initialized) {
109 console.error('Do not repeat the initialization of the datasheet store.');
110 return;
111 }
112 this.initialized = true;
113
114 this.bindBeforeUnload();
115 this.socket = this.createSocket();
116 this.database = this.createDatabase();
117 this.resourceStashManager = new ResourceStashManager(this.store, () => {
118 return this.roomService;
119 });
120 }
121
122 destroy() {
123 if (!this.initialized) {

Callers

nothing calls this directly

Calls 4

bindBeforeUnloadMethod · 0.95
createSocketMethod · 0.95
createDatabaseMethod · 0.95
errorMethod · 0.65

Tested by

no test coverage detected