fix: try to fix 329 error
This commit is contained in:
parent
58a7d04d8b
commit
823a00d1ea
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 = () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue