Unblock React Compiler for 5 components by removing render-phase mutation (#11543)

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Samuel Newman <mozzius@protonmail.com>
This commit is contained in:
Tomasz Zawadzki
2026-08-31 23:03:13 +02:00
committed by GitHub
parent 0a00392b65
commit bfde8e60c2
6 changed files with 40 additions and 40 deletions
+5 -4
View File
@@ -116,14 +116,15 @@ function Inner({
setActiveNux(undefined)
}, [activeNux, setActiveNux])
if (__DEV__ && typeof window !== 'undefined') {
// @ts-expect-error
useEffect(() => {
if (!__DEV__ || typeof window === 'undefined') return
// @ts-expect-error debug only
window.clearNuxDialog = (id: Nux) => {
if (!__DEV__ || !id) return
if (!id) return
resetNuxs([id])
unsnooze()
}
}
}, [resetNuxs])
useEffect(() => {
if (snoozed) return // comment this out to test