MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / fetchStarCount

Function fetchStarCount

packages/ui/src/layout/MainLayout/Header/index.jsx:200–210  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198 useEffect(() => {
199 if (isCloud || isOpenSource) {
200 const fetchStarCount = async () => {
201 try {
202 const response = await fetch('https://api.github.com/repos/FlowiseAI/Flowise')
203 const data = await response.json()
204 if (data.stargazers_count) {
205 setStarCount(data.stargazers_count)
206 }
207 } catch (error) {
208 setStarCount(0)
209 }
210 }
211
212 fetchStarCount()
213 }

Callers 1

HeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected