diff options
author | Hailey <me@haileyok.com> | 2024-04-03 20:59:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-03 20:59:33 -0700 |
commit | 8e393b16f502ca201393d1fd585c870fee8a4fe9 (patch) | |
tree | f7132f60173434f9ae2344fa359f2a5e3b7446d1 /src/components/Error.tsx | |
parent | b1bd7ab6e3bd9226383b6eb979857564775435ad (diff) | |
download | voidsky-8e393b16f502ca201393d1fd585c870fee8a4fe9.tar.zst |
Simplify list logic further to prevent misuse (#3334)
* simplify list logic further more simplification simplify by removing `isEmpty` use `isFetchingNextPage` everywhere for clarity change `isFetching` to `isFetchingNextPage` for clarity remove some useless `useMemo`s move `renderItem` and `keyExtractor` out of component * clean bundle size check * update deploy * adjust * adjust * one test * try now * test it * done
Diffstat (limited to 'src/components/Error.tsx')
-rw-r--r-- | src/components/Error.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Error.tsx b/src/components/Error.tsx index 7df166c3f..91b33f48e 100644 --- a/src/components/Error.tsx +++ b/src/components/Error.tsx @@ -1,9 +1,9 @@ import React from 'react' import {View} from 'react-native' -import {useNavigation} from '@react-navigation/core' -import {StackActions} from '@react-navigation/native' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' +import {useNavigation} from '@react-navigation/core' +import {StackActions} from '@react-navigation/native' import {NavigationProp} from 'lib/routes/types' import {CenteredView} from 'view/com/util/Views' |