mirror of
https://github.com/supabase/supabase.git
synced 2026-10-18 23:59:08 +03:00
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)
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user