mirror of
https://github.com/supabase/supabase.git
synced 2026-06-28 11:33:52 -04:00
d841928ad6
The diff-apply effect early-returns when the Monaco editor model isn't ready, but it only depended on diffRequest.pending, so a request issued before the editor mounted was dropped despite the comment claiming otherwise. Track an editorMountCount that bumps on every onMount (including the keyed remount on snippet switch) and add it to the effect deps, so a pending request is re-applied once the editor is ready. The one-shot consumeDiffRequest drain stays in the same effect.