Skip to content

checkComponents ​

Throws a TypeError that names every field type of a tree, at any depth, that components has no entry for.

ts
checkComponents(nodes, components)

Parameters ​

  • nodes readonly FieldNode[]
  • components Readonly<Record<string, unknown>>

Explanation ​

A renderer that takes a component per field type calls it before it renders, so a missing component shows up at once, rather than when its field first appears, like in a new list item. The adapters call it for you.

Functions ​

Guides ​