Seitu
Core

Schema Store

Reactive store validated on read.

createSchemaStore()

Reactive store validated on read. Invalid values fall back to defaultValue. Validation is memoized on the raw state reference.

Examples

import {  } from 'seitu'
import * as  from 'zod'

const  = ({
  : .({ : .(), : .() }),
  : { : 0, : '' },
})
.()
.({ : 1, : 'alice' })
.(.)

Edit on GitHub

Last updated on

On this page