1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Try without memo

This commit is contained in:
Zhiyuan Zheng
2022-06-01 00:33:59 +02:00
parent 68178f7f31
commit a9e36d4a9c
7 changed files with 188 additions and 129 deletions

View File

@ -440,8 +440,8 @@ const useTimelineMutation = ({
...(onMutate && {
onMutate: params => {
queryClient.cancelQueries(params.queryKey)
let oldData
params.queryKey && (oldData = queryClient.getQueryData(params.queryKey))
const oldData =
params.queryKey && queryClient.getQueryData(params.queryKey)
haptics('Light')
switch (params.type) {