Skip to content

useApplicableSchema

useApplicableSchema(): ApplicableSchema

Defined in: toolbar/src/use-applicable-schema.ts:21

React hook that subscribes to getApplicableSchema for the active editor and returns a stable reference across editor ticks while the applicable set is unchanged.

Pair with useToolbarSchema to render a static toolbar whose buttons stay stable across selection moves and gate their enabled state on whether the corresponding name is in the relevant set.

ApplicableSchema