feat: use react query for page requests

This commit is contained in:
DIYgod
2022-07-22 01:30:44 +01:00
parent 074611e88d
commit c19e1d8f1a
14 changed files with 181 additions and 134 deletions
+7
View File
@@ -0,0 +1,7 @@
import { QueryClient } from '@tanstack/react-query'
const queryClientServerIn = new QueryClient()
export const cacheMaxAge = parseInt(process.env.CACHE_MAX_AGE || "600000")
export const queryClientServer = queryClientServerIn