Reinstate SQL editor results events (#33736)

* Reinstate SQL editor results events

* remove random console.log

* fix event name

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
This commit is contained in:
Joshen LimandAlaister Young authored and GitHub committed 2025-02-20 18:46:23 +07:00
1 parent 64bfd6dc72
commit ae2203b5e7
4 files changed
+28 -2

No files matched your search

@@ -43,7 +43,6 @@ export const useExecuteSqlMutation = ({
// [Joshen] Default to false for now, only used for SQL editor to dynamically invalidate
if (contextualInvalidation && projectRef) {
const invalidationKeys = inferInvalidationKeys(projectRef, sql)
console.log({ invalidationKeys })
await Promise.all(invalidationKeys.map((key) => queryClient.invalidateQueries(key)))
}
await onSuccess?.(data, variables, context)