[priority: critical] React Infinite Loop - "Climb the Spire" crashes game #193
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
CRITICAL BUG: Game crashes when clicking "Climb the Spire"
Bug Summary
Steps to Reproduce
Error Details
Recovery Required
Technical Context Needed
Investigation Areas
src/components/game/SpireTab.tsxand related combat componentsPriority
CRITICAL - Blocks core game loop (spire/combat system cannot be accessed)
Starting investigation of React infinite loop crash when clicking "Climb the Spire". Will examine the spire-related components and store actions.
Fixed: Removed unnecessary useEffect in page.tsx that called setActiveTab('spells') when spireMode changed to true. Also removed redundant setAction('climb') call in SpireCombatPage's useEffect since enterSpireMode already sets currentAction to 'climb'. These changes eliminate potential render feedback loops that could cause React's "Maximum update depth exceeded" error.