MCPcopy Create free account
hub / github.com/Effect-TS/effect / evolve

Method evolve

packages/effect/src/ui/Component.ts:869–869  ·  view source on GitHub ↗

* Changes some fields of the Model and keeps the rest. Each field takes * its new value, or a function from its old value to the new one, with the * rules of `UiStruct.evolve`: `$.evolve({ submitting: true, attempts: (n) => n + 1 })`. * On a union Model it's a compile error: match the union

(fields: UiStruct.EvolveFields<Model>)

Source from the content-addressed store, hash-verified

867 * On a union Model it's a compile error: match the union first.
868 */
869 evolve(fields: UiStruct.EvolveFields<Model>): Step<Model, Msg, Events, R, L>
870 /**
871 * Runs Commands owned by this instance: each ends when the instance does,
872 * and gets a Scope of its own that closes with it. Their results come back as

Callers 15

NativeApp.test.tsFile · 0.65
counterFunction · 0.65
Image.test.tsFile · 0.65
Containers.test.tsFile · 0.65
NativeHost.test.tsFile · 0.65
Animation.test.tsFile · 0.65
Kit.test.tsFile · 0.65
makeListFunction · 0.65

Calls

no outgoing calls

Tested by 5

counterFunction · 0.52
makeListFunction · 0.52
mountFunction · 0.52
makeCardFunction · 0.52
makeGalleryFunction · 0.52