Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/graphql/graphiql
/ setTheme
Function
setTheme
packages/graphiql-react/src/theme.ts:44–47 ·
view source on GitHub ↗
(newTheme: Theme)
Source
from the content-addressed store, hash-verified
42
}, [theme]);
43
44
const
setTheme = (newTheme: Theme) => {
45
storageContext?.set(STORAGE_KEY, newTheme ||
''
);
46
setThemeInternal(newTheme);
47
};
48
49
return
{ theme, setTheme };
50
}
Callers
2
GraphiQLInterface
Function · 0.85
handleChangeTheme
Function · 0.85
Calls
1
set
Method · 0.45
Tested by
no test coverage detected