MCPcopy Create free account
hub / github.com/chakra-ui/panda / refresh

Method refresh

packages/node/src/diff-engine.ts:30–39  ·  view source on GitHub ↗

* Update the context from the refreshed config * then persist the changes on each affected engines * Returns the list of affected artifacts/engines

(conf: LoadConfigResult, fn?: (conf: LoadConfigResult) => void)

Source from the content-addressed store, hash-verified

28 * Returns the list of affected artifacts/engines
29 */
30 refresh(conf: LoadConfigResult, fn?: (conf: LoadConfigResult) => void) {
31 const affected = diffConfigs(() => conf.deserialize(), this.prevConfig)
32
33 if (!affected.hasConfigChanged || !this.prevConfig) return affected
34
35 fn?.(conf)
36 this.prevConfig = conf.deserialize()
37
38 return affected
39 }
40}

Callers 2

Calls 2

diffConfigsFunction · 0.90
fnFunction · 0.50

Tested by

no test coverage detected