setContext
Supplies a scoped value to later context reads.
Table of contents
Category
Value
Import
jsimport { setContext } from "valyrian.js/context";Public signature
ts<T>(scope: ContextScope<T>, value: T): () => voidParameters
tsscope: ContextScope<T>, value: TResult
ts() => voidObservable effects
Changes the value associated with a context boundary and returns a restoration function.