Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
87
export
const
setCurrentStack = (stackName: string) => {
88
if
(storageAvailable(
"localStorage"
)) {
89
window.localStorage.setItem(CURRENT_STACK_KEY, stackName);
90
}
91
};
Callers
1
SwitchStackModalContent
Function · 0.90
Calls
1
storageAvailable
Function · 0.85
Tested by
no test coverage detected