Контекст для MetaFor - v2.3.1
    Preparing search index...

    Function contextFromSchema

    • Создает контекст из готовой схемы.

      Type Parameters

      Parameters

      • schema: C

        Схема контекста

      Returns Context<C>

      Функциональный контекст с методами update, onUpdate и иммутабельным доступом

      const schema = contextSchema((t) => ({
      name: t.string.required("Гость", { label: "Имя" }),
      age: t.number.optional()
      }))
      const ctx = contextFromSchema(schema)