mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-20 00:51:17 -08:00
6 lines
280 B
TypeScript
6 lines
280 B
TypeScript
export const REACT_QUERY_DEVTOOLS_LOCAL_STORAGE_KEY = 'sable_react_query_devtools';
|
|
|
|
export const isReactQueryDevtoolsEnabled = (): boolean =>
|
|
import.meta.env.VITE_ENABLE_REACT_QUERY_DEVTOOLS === 'true' ||
|
|
localStorage.getItem(REACT_QUERY_DEVTOOLS_LOCAL_STORAGE_KEY) === '1';
|