diff --git a/App.tsx b/App.tsx index 75d1eac..a4841e0 100644 --- a/App.tsx +++ b/App.tsx @@ -135,6 +135,25 @@ export default function App() { setOthers([]); } + const resyncData = async () => { + const movies = await db.from('movies').select().eq(); + if (movies.data) { + setMovies(movies.data); + } + const shows = await db.from('shows').select().eq(); + if (shows.data) { + setShows(shows.data); + } + const otherCategories = await db.from('categories').select().eq(); + if (otherCategories.data) { + setOtherCategories(otherCategories.data); + } + const others = await db.from('others').select().eq(); + if (others.data) { + setOthers(others.data); + } + } + return ( @@ -145,7 +164,7 @@ export default function App() { }/> } /> } /> - } /> + } />