mirror of
https://github.com/supabase/supabase.git
synced 2026-06-21 00:06:04 +08:00
Previously `connectionString` was passed into the query key for `table-rows`. Since `connectionString` is unstable, it would cause the query key to change randomly, often making the user experience brief random "no rows found" states while data loaded for the new key. This PR uses `readReplicaIdentifier` as a stable version of `connectionString`, maintaining the existing functionality while avoiding the unnecessary data reloads. Note that there are still quite a few places where `connectionString` is passed into the query key. We'll fix these as follow up PRs. I'm opting to also include the fix from https://github.com/supabase/supabase/pull/43572 in here for consistency. **To test:** - Ensure table editor functions normally - Use the table editor with a read replica selected