UNSAFE_PREACT_OPTIONS: Component uses Preact's global options
Este conteúdo não está disponível em sua língua ainda.
| Severity | Fault | Stage |
|---|---|---|
| error | customer (the source package) | build output |
What it means
Section titled “What it means”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).
How to fix
Section titled “How to fix”Remove the options import; do per-render work in components and hooks of your own component.