feat(use-problem): add monacoLanguageClient state management

This commit is contained in:
2025-03-23 16:59:22 +08:00
parent 0e5e683ef3
commit becb48f4d7
+4
View File
@@ -39,10 +39,12 @@ export const useProblem = () => {
const {
hydrated,
editor,
monacoLanguageClient,
globalLang,
currentLang,
currentValue,
setEditor,
setMonacoLanguageClient,
setGlobalLang,
setCurrentLang,
setCurrentValue,
@@ -109,7 +111,9 @@ export const useProblem = () => {
return {
hydrated,
editor,
monacoLanguageClient,
setEditor,
setMonacoLanguageClient,
globalLang,
currentLang,
currentValue,