BUG: Climb the Spire causes React error #185 (infinite loop crash) #236
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?
Bug Description
Clicking the "Climb the Spire" button immediately crashes the game with React error #185 (Maximum update depth exceeded). The "Enter Spire Mode" button in the Debug panel causes the same crash. This prevents any spire/combat gameplay.
Steps to Reproduce
Environment
Impact
Starting investigation of React #185 infinite loop crash when clicking "Climb the Spire". Reading gameStore.ts tick function and related combat/spire code to identify the re-render loop.
Fixed. Removed redundant
set()call inprocessCombatTick(combat-actions.ts) that was causing double Zustand writes per tick. Thepersistmiddleware prevented deduplication, causing synchronous re-render feedback loop (React #185). The tick pipeline already handles writes viaapplyTickWrites, so the inlineset()was unnecessary.