Refactor components. Add refresh button.

This commit is contained in:
Mike Cao committed 2020-08-31 03:53:39 -07:00
1 parent d0ca0819c6
commit d06c077019
12 files changed
+85 -56

No files matched your search

+1 -1
View File
@@ -35,5 +35,5 @@ export default function useFetch(url, params = {}, options = {}) {
}
}, [url, ...keys, ...update]);
return { data, error };
return { data, error, loadData };
}