MCPcopy
hub / github.com/callstack/repack / resolveChunk

Method resolveChunk

packages/repack/src/client/api/ChunkManager.ts:72–74  ·  view source on GitHub ↗

* Resolves a URL to a given chunks and whether to download a chunk * or reuse previously downloaded one. * * @param chunkId Id of the chunk. * @returns Promise with chunk's URL as `url` and a boolean `fetch` whether to download a chunk * or reuse previously downloaded one.

(chunkId: string, parentChunkId?: string)

Source from the content-addressed store, hash-verified

70 * or reuse previously downloaded one.
71 */
72 static async resolveChunk(chunkId: string, parentChunkId?: string) {
73 return ChunkManager.backend.resolveChunk(chunkId, parentChunkId);
74 }
75
76 /**
77 * Resolves given chunk's location, download and execute it.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected