Skip to content

UNSAFE_PREACT_OPTIONS: Component uses Preact's global options

Severity Fault Stage
error customer (the source package) build output

The component imports Preact’s options object, the global hooks of the shared runtime. Every component on the page uses the same Preact, so a change there reaches the other components’ rendering and events (rule preact-options).

Remove the options import; do per-render work in components and hooks of your own component.