MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / updateSaved

Function updateSaved

src/components/navs/Sidebar.jsx:53–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51
52 useEffect(() => {
53 const updateSaved = () => setSavedSet(new Set(getSavedComponents()));
54 const onStorage = e => {
55 if (!e || e.key === 'savedComponents') updateSaved();
56 };

Callers 2

onStorageFunction · 0.85
useFavoritesSyncFunction · 0.85

Calls 1

getSavedComponentsFunction · 0.90

Tested by

no test coverage detected