MCPcopy Create free account
hub / github.com/Snapchat/dagger-browser / loadFile

Method loadFile

browser/src/models/GraphManager.tsx:63–68  ·  view source on GitHub ↗
(manifestFile: File)

Source from the content-addressed store, hash-verified

61 }
62
63 async loadFile(manifestFile: File): Promise<boolean> {
64 let manifestResponse = await this.readFileAsync(manifestFile)
65 this.componentSet = JSON.parse(manifestResponse) as ComponentSet;
66 this.populateCaches();
67 return true;
68 }
69
70 async readFileAsync(file: File): Promise<string> {
71 return new Promise((resolve, reject) => {

Callers 1

refreshMethod · 0.80

Calls 2

readFileAsyncMethod · 0.95
populateCachesMethod · 0.95

Tested by

no test coverage detected