For AI agents: the complete documentation index is available at https://mfdoctor.kevinbeier.com/de/llms.txt, the full documentation bundle is available at https://mfdoctor.kevinbeier.com/de/llms-full.txt, and this page is available as Markdown at https://mfdoctor.kevinbeier.com/de/rules/shared/singleton-risk.md.

Dies ist die deutsche MFDoctor-Dokumentation. Technische Bezeichner, CLI-Flags, Regel-IDs und Codebeispiele bleiben unverändert, damit die Inhalte zwischen den Sprachen vollständig kompatibel bleiben. Verwenden Sie den Sprachumschalter für die kanonische englische Fassung.

shared/singleton-risk

  • Kategorie: reliability
  • Standardschweregrad: warning

Problem

Multiple framework runtimes can split global state, contexts, hooks, or renderers.

So beheben Sie das Problem

Share stateful framework runtimes as singletons and align their versions.

Suppress or retarget with rules["shared/singleton-risk"] set to "off" or a severity — see Suppressions and allowlists.

Quellen