SpaceSidebar crashed with "Rendered more hooks than during the previous render" because R3.6 added a useDisclosure() AFTER `if (!space) return`. When `space` flipped from undefined (loading) to defined (loaded), the hook count changed and React threw, triggering the Error Boundary and blanking the page. This single bug was the root cause of 5 reported failures (R4.7 smoke): create page, sub-page, wikilink, /database, /template, /sync-block — all blocked by the white screen. Fix: hoist the hook above the conditional return. Hook order now stable. |
||
|---|---|---|
| .. | ||
| assets | ||
| components | ||
| ee | ||
| features | ||
| hooks | ||
| lib | ||
| pages | ||
| theme | ||
| App.tsx | ||
| i18n.ts | ||
| main.tsx | ||
| test-setup.ts | ||
| theme.ts | ||
| vite-env.d.ts | ||