feat(frontends): added vite and docusorus into the games

This commit is contained in:
2026-02-18 12:11:51 -06:00
parent 23c000fa7f
commit 76503f558b
72 changed files with 26865 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
import type { ReactNode } from 'react'
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
let context:
| {
queryClient: QueryClient
}
| undefined
export function getContext() {
if (context) {
return context
}
const queryClient = new QueryClient()
context = {
queryClient,
}
return context
}
export default function TanStackQueryProvider({
children,
}: {
children: ReactNode
}) {
const { queryClient } = getContext()
return (
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
)
}