mirror of
https://github.com/mudabbir-ahmad/Project-MAD-crudler.git
synced 2026-10-08 04:40:20 +00:00
Started User branch
This commit is contained in:
1 parent
f064e27761
commit
532cffab57
5 files changed
+261
-64
No files matched your search
@@ -11,9 +11,10 @@ const useLoad = (loadEndpoint) => {
|
||||
|
||||
// Loader ----------------------
|
||||
const loadRecords = async (endpoint) => {
|
||||
setIsLoading(true);
|
||||
const response = await API.get(endpoint);
|
||||
setIsLoading(false);
|
||||
if (response.isSuccess) setRecords(response.result);
|
||||
setIsLoading(false);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in new issue
Block a user