Wall: paired verification logs for registry vs legacy dispatch
Three one-shot console.info calls so the Phase 3 milestone-B parity check is unambiguous from the browser console alone: - [wall:registry] system bundle mounted — fires when RegisteredSystems lazy-loads nodes/src/wall/system.tsx (exactly once per viewer mount when the flag is on). - [wall:registry] first WallRenderer mounted — fires once when the first registry-driven WallRenderer mounts. - [wall:legacy] first legacy WallRenderer mounted — fires once if the legacy path is active (flag off, or kind not registered). Module-level booleans gate the renderer logs so they don't spam in scenes with many walls. Drop all three alongside the feature flag at Phase 3 sign-off. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
02aeca8439
commit
375914a07c
@@ -1,6 +1,7 @@
|
||||
'use client'
|
||||
|
||||
import { WallCutout, WallSystem } from '@pascal-app/viewer'
|
||||
import { useEffect } from 'react'
|
||||
|
||||
/**
|
||||
* Registry-driven wall system bundle.
|
||||
@@ -27,6 +28,17 @@ import { WallCutout, WallSystem } from '@pascal-app/viewer'
|
||||
* then this file is the single mount surface for wall's per-frame work.
|
||||
*/
|
||||
const WallSystems = () => {
|
||||
// Phase 3 verification log — confirms the registry took over the wall
|
||||
// dispatch. Fires once when RegisteredSystems lazy-loads this bundle (so
|
||||
// exactly once per viewer mount when NEXT_PUBLIC_USE_REGISTRY_FOR_WALL=true).
|
||||
// Drop alongside the feature flag at Phase 3 sign-off.
|
||||
useEffect(() => {
|
||||
console.info('[wall:registry] system bundle mounted — registry path active')
|
||||
return () => {
|
||||
console.info('[wall:registry] system bundle unmounted')
|
||||
}
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<>
|
||||
<WallSystem />
|
||||
|
||||
Reference in New Issue
Block a user