MCPcopy Index your code
hub / github.com/stemdeckapp/stemdeck / saveSelectedStems

Function saveSelectedStems

static/js/state.js:103–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101})();
102
103export function saveSelectedStems() {
104 storeSet(_STEM_SEL_KEY, [...selectedStems]).catch((e) =>
105 console.warn("[state] failed to save stem selection:", e)
106 );
107}
108export function setStemSelected(name, selected) {
109 if (selected) selectedStems.add(name);
110 else selectedStems.delete(name);

Callers 4

applyStoredStemSelectionFunction · 0.90
handleStemChoiceClickFunction · 0.90
wireAllButtonFunction · 0.90
setStemSelectedFunction · 0.85

Calls 1

storeSetFunction · 0.90

Tested by

no test coverage detected