diff options
| author | Akshay Nair <phenax5@gmail.com> | 2024-09-29 13:19:11 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2024-09-29 16:16:40 +0530 |
| commit | bac973fb3d933c383cc69612c7ffc45ece837dde (patch) | |
| tree | ffe6dc906c4108dd38d24be69f89a6c5e3a50347 /src/AppView.tsx | |
| parent | bcf8a0ce1a3f4ccab01737741a22ecaf968daaff (diff) | |
| download | daft-launcher-bac973fb3d933c383cc69612c7ffc45ece837dde.tar.gz daft-launcher-bac973fb3d933c383cc69612c7ffc45ece837dde.zip | |
Switch to jotai atom with storage + suspense for favorites list
Diffstat (limited to '')
| -rw-r--r-- | src/AppView.tsx (renamed from src/View.tsx) | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/View.tsx b/src/AppView.tsx index 110e3fe..cca64f6 100644 --- a/src/View.tsx +++ b/src/AppView.tsx @@ -3,17 +3,14 @@ import Swiper from 'react-native-swiper'; import {AppList} from './screens/AppList'; import {Home} from './screens/Home'; import {useInstalledApps} from './hooks/useInstalledApps'; -import {useFavorites} from './hooks/useFavorites'; -export const View: React.FC = React.memo(() => { +export const AppView: React.FC = React.memo(() => { const {refreshApps} = useInstalledApps(); - const {refreshFavorites} = useFavorites(); const [screenIndex, setScreenIndex] = useState(0); useEffect(() => { refreshApps(); - refreshFavorites(); - }, [screenIndex, refreshApps, refreshFavorites]); + }, [screenIndex, refreshApps]); return ( <Swiper |
