Merge pull request #16026 from supabase/studio

sync studio -> master
This commit is contained in:
Alaister Young authored and GitHub committed 2023-07-25 22:04:38 +10:00
commit 659251ff3d
1 file changed
+2
@@ -29,6 +29,8 @@ const SideBarContent = observer(() => {
const snap = useSqlEditorStateSnapshot()
const { isLoading, isSuccess } = useSqlSnippetsQuery(ref, {
refetchOnWindowFocus: false,
staleTime: 300, // 5 minutes
onSuccess(data) {
if (ref) snap.setRemoteSnippets(data.snippets, ref)
},