add function tokenLifeExtension
This commit is contained in:
@@ -12,13 +12,13 @@ const getQueryClientDefaultConfig = () => ({
|
||||
})
|
||||
|
||||
export function makeQueryClient() {
|
||||
return new QueryClient(getQueryClientDefaultConfig())
|
||||
return new QueryClient(getQueryClientDefaultConfig());
|
||||
}
|
||||
|
||||
export const getQueryClient = cache(() => {
|
||||
|
||||
if (typeof window === 'undefined') {
|
||||
return new QueryClient(getQueryClientDefaultConfig())
|
||||
return new QueryClient(getQueryClientDefaultConfig())
|
||||
} else {
|
||||
// @ts-ignore
|
||||
if (!globalThis.__APP_QUERY_CLIENT__) {
|
||||
|
||||
Reference in New Issue
Block a user