MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / fetchData

Function fetchData

frontend/src/components/plugins/index.tsx:79–95  ·  view source on GitHub ↗
(params: any)

Source from the content-addressed store, hash-verified

77 }
78 }, [pluginLists])
79 const fetchData = async (params: any) => {
80 setLoading(true);
81 try {
82 const res: any = await getPluginList(params)
83 const data = res.data.map((item: any) => {
84 return {
85 ...item,
86 }
87 })
88
89 setPluginFunList(data)
90 setHasMore(res.has_more)
91 } catch (error) {
92 console.log(error)
93 }
94 setLoading(false);
95 };
96 const handleCreatePrompt = async () => {
97 setOpenDrawer(true)
98 }

Callers 1

handleChildEventFunction · 0.70

Calls 2

getPluginListFunction · 0.90
setLoadingFunction · 0.85

Tested by

no test coverage detected