UNPKG
@proofkit/cli
Version:
beta (2.0.0-beta.9)
latest (1.1.8)
2.0.0-beta.9
2.0.0-beta.6
2.0.0-beta.5
2.0.0-beta.4
1.2.0-beta.2
1.2.0-beta.1
1.2.0-beta.0
1.1.8
1.1.6
1.1.5
1.0.0
1.0.0-beta.0
Create web application with the ProofKit stack
github.com/proofgeist/proofkit
proofgeist/proofkit
@proofkit/cli
/
template
/
extras
/
config
/
get-query-client.ts
7 lines
(5 loc)
•
244 B
text/typescript
View Raw
1
2
3
4
5
6
7
import
{
QueryClient
}
from
"@tanstack/react-query"
;
import
{ cache }
from
"react"
;
// cache() is scoped per request, so we don't leak data between requests
const
getQueryClient =
cache
(
() =>
new
QueryClient
());
export
default
getQueryClient;