mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
fix(local): allow offline
This commit is contained in:
1 parent
bd49f45798
commit
fc6e72d7ea
1 file changed
+8
-1
@@ -1,6 +1,13 @@
|
||||
import { QueryClient } from '@tanstack/react-query'
|
||||
import { QueryClient, onlineManager } from '@tanstack/react-query'
|
||||
import { IS_PLATFORM } from 'lib/constants'
|
||||
import { useState } from 'react'
|
||||
|
||||
// When running locally we don't need the internet
|
||||
// so we can pretend we're online all the time
|
||||
if (!IS_PLATFORM) {
|
||||
onlineManager.setOnline(true)
|
||||
}
|
||||
|
||||
let queryClient: QueryClient | undefined
|
||||
|
||||
export function getQueryClient() {
|
||||
|
||||
Reference in new issue
Block a user