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

Function removeSavedComponent

src/utils/favorites.js:41–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39};
40
41export const removeSavedComponent = key => {
42 const list = read();
43 const next = list.filter(item => item !== key);
44 write(next);
45 return next;
46};
47
48export const toggleSavedComponent = key => {
49 const list = read();

Callers 1

cellRendererFunction · 0.90

Calls 2

readFunction · 0.70
writeFunction · 0.70

Tested by

no test coverage detected