mirror of
https://github.com/tooot-app/app
synced 2025-02-08 16:08:44 +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({
|
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) {
|
||||||
|
@ -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
|
||||||
)
|
)
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user