MCPcopy Create free account
hub / github.com/craftreactnative/ui / setLatestFlag

Function setLatestFlag

cli/src/utils/component-manager.ts:17–22  ·  view source on GitHub ↗
(latest: boolean)

Source from the content-addressed store, hash-verified

15 * Sets the latest flag for component downloads
16 */
17export function setLatestFlag(latest: boolean): void {
18 refreshFlag = latest;
19 if (latest) {
20 cachedPaths = null; // Clear in-memory cache
21 }
22}
23
24/**
25 * Ensures components are downloaded and returns the source paths

Callers 1

cli.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected