mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
React-Query fully working on existing components
This commit is contained in:
16
App.tsx
16
App.tsx
@@ -1,6 +1,20 @@
|
||||
import React from 'react'
|
||||
import { QueryCache, ReactQueryCacheProvider, setConsole } from 'react-query'
|
||||
|
||||
import { Index } from 'src/Index'
|
||||
|
||||
const App: React.FC = () => <Index />
|
||||
const queryCache = new QueryCache()
|
||||
|
||||
setConsole({
|
||||
log: console.log,
|
||||
warn: console.warn,
|
||||
error: console.warn
|
||||
})
|
||||
|
||||
const App: React.FC = () => (
|
||||
<ReactQueryCacheProvider queryCache={queryCache}>
|
||||
<Index />
|
||||
</ReactQueryCacheProvider>
|
||||
)
|
||||
|
||||
export default App
|
||||
|
Reference in New Issue
Block a user