Refactor components. Add refresh button.
This commit is contained in:
1 parent
d0ca0819c6
commit
d06c077019
12 files changed
+85
-56
No files matched your search
+1
-1
@@ -35,5 +35,5 @@ export default function useFetch(url, params = {}, options = {}) {
|
||||
}
|
||||
}, [url, ...keys, ...update]);
|
||||
|
||||
return { data, error };
|
||||
return { data, error, loadData };
|
||||
}
|
||||
Reference in new issue
Block a user