mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 20:35:07 +03:00
## Problem After deploying a new edge function where you actually modified the code from the initial template, a dialog appears about unsaved changes. ## Solution We must check that even though the files have changed from the initial ones, we actually saved them by deploying the function. However, because we trigger the navigation in the mutation `onSuccess` side effect, it happens before react can update the state that would prevent the dialog from appearing.