fix(viewer): suppress THREE.Clock deprecation warning from R3F 9.x (#215)
three.js r183 deprecated THREE.Clock, but @react-three/fiber 9.x still uses it internally per <Canvas> mount. This floods the dev console with noise on every page load and HMR reload. Uses three's setConsoleFunction hook to surgically suppress only the exact Clock deprecation message. All other three.js logs pass through untouched, including TSL stack-trace warnings. Safe to remove once R3F v10 stable ships (which replaces Clock with Timer). Removal condition documented in file header. Closes #213
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
'use client'
|
||||
|
||||
// Must run before @react-three/fiber's Canvas instantiates new THREE.Clock().
|
||||
// See lib/suppress-three-clock-warning.ts for rationale and removal condition.
|
||||
import '../../lib/suppress-three-clock-warning'
|
||||
|
||||
import {
|
||||
CeilingSystem,
|
||||
DoorSystem,
|
||||
|
||||
Reference in New Issue
Block a user