Skip to content

Commit 8ba7d36

Browse files
authored
feat(workspaces): create workspaces query hook (#111)
1 parent a940ffe commit 8ba7d36

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/hooks/useWorkspacesData.ts

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { useQuery } from "@tanstack/react-query";
2+
import { v1ListWorkspacesOptions } from "@/api/generated/@tanstack/react-query.gen";
3+
4+
export const useWorkspacesData = () => {
5+
return useQuery({
6+
...v1ListWorkspacesOptions(),
7+
});
8+
};

0 commit comments

Comments
 (0)