fix: try to fix 329 error

This commit is contained in:
DIYgod
2023-09-21 23:31:27 +08:00
parent 58a7d04d8b
commit 823a00d1ea
2 changed files with 2 additions and 2 deletions
+1 -2
View File
@@ -54,7 +54,6 @@ export const mantineDefaultColorScheme = mantineDefaultColorSchemeT as
| "light"
| "dark"
const createQueryClient = () => new QueryClient()
export default function Providers({
children,
lang,
@@ -66,7 +65,7 @@ export default function Providers({
useNProgress()
useDarkModeListener()
const [queryClient] = useState(createQueryClient)
const [queryClient] = useState(() => new QueryClient())
return (
<ThemeProvider
+1
View File
@@ -7,6 +7,7 @@ import { throttle } from "~/lib/utils"
import { FABBase } from "../ui/FAB"
const isShouldShow = () =>
typeof window !== undefined &&
document.documentElement.scrollTop > document.documentElement.clientHeight
export const BackToTopFAB = () => {