iconify-max-depth-issue Svelte Themes

Iconify Max Depth Issue

Minimal reproduction case for effect_update_depth_exceeded error in @iconify/svelte with PaneForge components

Iconify Max Depth Issue Reproduction

๐Ÿค– Developed with Claude Code | Related: Iconify Issue #386

Minimal SvelteKit reproduction for effect_update_depth_exceeded error in @iconify/svelte.

๐ŸŽฏ Key Findings

Configuration Incremental Loading Direct Navigation
Without PaneForge โœ… 2000+ icons โŒ 1500+ icons
With PaneForge โŒ 1400 icons โŒ 1400 icons

โš ๏ธ Note: Crash thresholds may vary on different machines/setups depending on performance and browser configuration.

Root Causes:

  1. PaneForge interaction (primary) - breaks both loading methods at 1400 icons
  2. Iconify bulk initialization (secondary) - overwhelms Svelte 5's effect system on direct navigation

๐Ÿงช Quick Test

npm install && npm run dev

Test URLs:

  • ?count=1400&paneforge=false โœ… Works
  • ?count=1500&paneforge=false โŒ Crashes (direct nav)
  • ?count=1400&paneforge=true โŒ Crashes (PaneForge)

Interactive Testing: Use checkbox and input field to compare incremental vs direct loading

๐Ÿ”ฌ Technical Details

Error: effect_update_depth_exceeded in @iconify/svelte:1763 Stack: SvelteKit + Svelte 5 + @iconify/svelte + PaneForge Issue: Infinite update loop in icon loading during bulk initialization

๐Ÿš€ Commands

npm run dev    # Start dev server
npm run check  # Type checking
npm run build  # Production build

๐Ÿ“ Structure

src/routes/+page.svelte  # Main reproduction test
CLAUDE.md               # Technical docs

Top categories

Loading Svelte Themes