MCPcopy Create free account
hub / github.com/TheOrcDev/orcish-fullstack-admin / fetchUsers

Function fetchUsers

app/admin/users/page.tsx:43–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 // TODO: Remove this useEffect, use new hooks
42 useEffect(() => {
43 const fetchUsers = async () => {
44 setIsLoading(true);
45 const users = await getUsers({
46 page: page < 1 ? DEFAULT_PAGE : page,
47 totalItems: totalItems < 1 ? DEFAULT_TOTAL_ITEMS : totalItems,
48 search,
49 });
50 setUsers(users);
51 setIsLoading(false);
52 };
53
54 fetchUsers();
55 }, [search, page, totalItems]);

Callers 1

UsersFunction · 0.85

Calls 1

getUsersFunction · 0.90

Tested by

no test coverage detected