1
0
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:
Zhiyuan Zheng
2020-11-04 22:26:38 +01:00
parent d1f32524ba
commit 631636db15
32 changed files with 6666 additions and 9038 deletions

16
App.tsx
View File

@@ -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