mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Updates
This commit is contained in:
@ -381,7 +381,8 @@ const useTimelineMutation = ({
|
||||
onSettled,
|
||||
...(typeof onSuccess === 'function'
|
||||
? { onSuccess }
|
||||
: {
|
||||
: onSuccess
|
||||
? {
|
||||
onSuccess: (data, params) => {
|
||||
queryClient.cancelQueries(params.queryKey)
|
||||
|
||||
@ -397,7 +398,8 @@ const useTimelineMutation = ({
|
||||
break
|
||||
}
|
||||
}
|
||||
}),
|
||||
}
|
||||
: undefined),
|
||||
...(onMutate && {
|
||||
onMutate: params => {
|
||||
queryClient.cancelQueries(params.queryKey)
|
||||
|
@ -11,7 +11,6 @@ const updateStatus = ({
|
||||
}) => {
|
||||
switch (payload.property) {
|
||||
case 'poll':
|
||||
console.log(payload.data)
|
||||
if (reblog) {
|
||||
item.reblog!.poll = payload.data
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user