mirror of
https://github.com/tooot-app/app
synced 2025-02-01 19:16:56 +01:00
Fix bugs
This commit is contained in:
parent
215534d0c8
commit
1b2d9d144f
9
react-native.config.js
Normal file
9
react-native.config.js
Normal file
@ -0,0 +1,9 @@
|
||||
module.exports = {
|
||||
dependencies: {
|
||||
'@react-native-firebase/app': {
|
||||
platforms: {
|
||||
ios: null
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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) {
|
||||
|
@ -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
|
||||
)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user