task(CAD-14 audit): registry effect idempotent (main.tsx init is the single source, no double-register warnings)
This commit is contained in:
@@ -150,8 +150,8 @@ const CADEditor: React.FC<CADEditorProps> = ({ projectId, token, onNavigateBack
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
pluginRegistry.setContext(createPluginContext());
|
pluginRegistry.setContext(createPluginContext());
|
||||||
registerBuiltinPlugins();
|
// CAD-14 Audit-Fix: main.tsx initialisiert die Registry bereits vor dem
|
||||||
pluginRegistry.initDefaults();
|
// Render — hier nur Context nachziehen, kein Doppel-Register (Warnungen).
|
||||||
}, [createPluginContext]);
|
}, [createPluginContext]);
|
||||||
|
|
||||||
// Status bar – only count self as online when actually connected
|
// Status bar – only count self as online when actually connected
|
||||||
|
|||||||
Reference in New Issue
Block a user