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

View File

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

View File

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