Browse documentation

getContext

Reads the value associated with a context boundary in the active execution.

Table of contents

Category

Value

Import

js
import { getContext } from "valyrian.js/context";

Public signature

ts
<T>(scope: ContextScope<T>): T | undefined

Parameters

ts
scope: ContextScope<T>

Result

ts
T | undefined