Skip to content

Reference 100

Reference: id 100

Generated from apps/docs-astro/src/generated/docs.json

setVars
Kind 4096 id: 100

Immer-style way of updating story variables Use this **solely** for setting values. If you must read a value, use `this.vars` **If you need to replace the entire state, *return a new object* instead of directly *assigning the value***

Type: void

Source: apps/library/src/engine/if-engine.ts :447 (view)

View by name: setVars

See in /reference/all