changed useFetch to take a Query parameter so It is easy to work with across the whole app

This commit is contained in:
thschleicher 2023-12-23 12:28:00 +01:00 committed by Jakob Stornig
parent 8009a6a090
commit ef90c4ee1a
5 changed files with 51 additions and 27 deletions

View file

@ -18,7 +18,7 @@ export default function Page() {
}
});
const {data, isLoading, reFetch} = useFetch();
const {data, isLoading, reFetch} = useFetch({sql: "SELECT guid as category_guid, name as category_name, color as category_color FROM category", args: []});
return (
<SafeAreaView style={styles.container}>