mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-17 23:12:23 +00:00
feat(use-problem): add monacoLanguageClient state management
This commit is contained in:
parent
0e5e683ef3
commit
becb48f4d7
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user