@wener/console
Version:
Base console UI toolkit
17 lines (16 loc) • 533 B
JavaScript
import { createContext, useContext } from "react";
import { proxyWithCompare } from "@wener/reaction/valtio";
import { structuredClone } from "@wener/utils";
const InitialState = {
ReactQuery: {
devtools: {
enable: false
}
}
};
const DefaultDebugState = proxyWithCompare(structuredClone(InitialState));
const DebugStateContext = /*#__PURE__*/ createContext(DefaultDebugState);
export function useDebugState() {
return useContext(DebugStateContext);
}
//# sourceMappingURL=useDebugState.js.map