MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / setCurrentStack

Function setCurrentStack

console/src/config/currentStack.ts:87–91  ·  view source on GitHub ↗
(stackName: string)

Source from the content-addressed store, hash-verified

85};
86
87export const setCurrentStack = (stackName: string) => {
88 if (storageAvailable("localStorage")) {
89 window.localStorage.setItem(CURRENT_STACK_KEY, stackName);
90 }
91};

Callers 1

SwitchStackModalContentFunction · 0.90

Calls 1

storageAvailableFunction · 0.85

Tested by

no test coverage detected