1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
Cannot use pure component in this case after refresh
This commit is contained in:
Zhiyuan Zheng
2021-03-25 00:25:37 +01:00
parent 3727f0e252
commit f3852025ba
10 changed files with 274 additions and 285 deletions

View File

@ -1,13 +1,12 @@
import { InfiniteData, QueryClient } from 'react-query'
import { queryClient } from '@root/App'
import { InfiniteData } from 'react-query'
import { MutationVarsTimelineDeleteItem } from '../timeline'
const deleteItem = ({
queryClient,
queryKey,
rootQueryKey,
id
}: {
queryClient: QueryClient
queryKey?: MutationVarsTimelineDeleteItem['queryKey']
rootQueryKey?: MutationVarsTimelineDeleteItem['rootQueryKey']
id: MutationVarsTimelineDeleteItem['id']