Создает контекст из готовой схемы.
Схема контекста
Функциональный контекст с методами update, onUpdate и иммутабельным доступом
const schema = contextSchema((t) => ({ name: t.string.required("Гость", { label: "Имя" }), age: t.number.optional()}))const ctx = contextFromSchema(schema) Copy
const schema = contextSchema((t) => ({ name: t.string.required("Гость", { label: "Имя" }), age: t.number.optional()}))const ctx = contextFromSchema(schema)
Создает контекст из готовой схемы.