mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-09-02 01:20:23 +08:00
Fixes diagram not restoring after refresh. The issue was: 1. DrawIoEmbed rendered with canPersist=false 2. Session restore loaded diagram into iframe 3. canPersist changed to true, causing iframe remount 4. New iframe loaded empty, losing the diagram Now we wait for isIndexedDBUsable() to complete before rendering, avoiding the remount entirely.