MCPcopy Create free account
hub / github.com/OpenSIST/OpenSIST.github.io / readCachedStars

Function readCachedStars

src/Components/Home/home.jsx:346–354  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

344}
345
346function readCachedStars() {
347 try {
348 const cached = JSON.parse(localStorage.getItem(GITHUB_STARS_CACHE_KEY) || 'null');
349 if (cached && typeof cached.count === 'number') return cached;
350 } catch {
351 /* ignore unreadable cache */
352 }
353 return null;
354}
355
356function WelcomeBlock() {
357 const dark = useTheme().palette.mode === 'dark';

Callers 1

WelcomeBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected