This commit is contained in:
xmflsct 2023-01-09 10:11:44 +01:00
parent 215534d0c8
commit 1b2d9d144f
4 changed files with 14 additions and 5 deletions

9
react-native.config.js Normal file
View File

@ -0,0 +1,9 @@
module.exports = {
dependencies: {
'@react-native-firebase/app': {
platforms: {
ios: null
}
}
}
}

View File

@ -30,7 +30,7 @@ const TimelineCard: React.FC = () => {
const statusQuery = useStatusQuery({ const statusQuery = useStatusQuery({
status: match?.status ? { ...match.status, uri: status.card.url } : undefined, status: match?.status ? { ...match.status, uri: status.card.url } : undefined,
options: { enabled: false } options: { enabled: false, retry: 1 }
}) })
useEffect(() => { useEffect(() => {
if (match?.status) { if (match?.status) {
@ -47,7 +47,7 @@ const TimelineCard: React.FC = () => {
const accountQuery = useAccountQuery({ const accountQuery = useAccountQuery({
account: match?.account ? { ...match?.account, url: status.card.url } : undefined, account: match?.account ? { ...match?.account, url: status.card.url } : undefined,
options: { enabled: false } options: { enabled: false, retry: 1 }
}) })
useEffect(() => { useEffect(() => {
if (match?.account) { if (match?.account) {

View File

@ -53,10 +53,10 @@ const ContentView: React.FC<{
const changesPoll = item.poll const changesPoll = item.poll
? item.poll.options.map((option, index) => ? item.poll.options.map((option, index) =>
withoutBoundary withoutBoundary
? prevItem?.poll?.options[index].title ? prevItem?.poll?.options[index]?.title
? diffChars(prevItem?.poll?.options[index].title, option.title) ? diffChars(prevItem?.poll?.options[index].title, option.title)
: undefined : undefined
: prevItem?.poll?.options[index].title : prevItem?.poll?.options[index]?.title
? diffWords(prevItem?.poll?.options[index].title, option.title) ? diffWords(prevItem?.poll?.options[index].title, option.title)
: undefined : undefined
) )

View File

@ -8,7 +8,7 @@ export const queryClient = new QueryClient({
if ([401, 404].includes(error?.status)) { if ([401, 404].includes(error?.status)) {
return false return false
} }
if (failureCount <= 3) { if (failureCount <= 2) {
return true return true
} else { } else {
return false return false