mirror of
https://github.com/massbug/judge4c.git
synced 2026-10-15 15:17:31 +00:00
feat(use-problem): integrate WebSocket into problem hook
This commit is contained in:
@@ -39,12 +39,12 @@ export const useProblem = () => {
|
|||||||
const {
|
const {
|
||||||
hydrated,
|
hydrated,
|
||||||
editor,
|
editor,
|
||||||
monacoLanguageClient,
|
webSocket,
|
||||||
globalLang,
|
globalLang,
|
||||||
currentLang,
|
currentLang,
|
||||||
currentValue,
|
currentValue,
|
||||||
setEditor,
|
setEditor,
|
||||||
setMonacoLanguageClient,
|
setWebSocket,
|
||||||
setGlobalLang,
|
setGlobalLang,
|
||||||
setCurrentLang,
|
setCurrentLang,
|
||||||
setCurrentValue,
|
setCurrentValue,
|
||||||
@@ -111,9 +111,9 @@ export const useProblem = () => {
|
|||||||
return {
|
return {
|
||||||
hydrated,
|
hydrated,
|
||||||
editor,
|
editor,
|
||||||
monacoLanguageClient,
|
webSocket,
|
||||||
setEditor,
|
setEditor,
|
||||||
setMonacoLanguageClient,
|
setWebSocket,
|
||||||
globalLang,
|
globalLang,
|
||||||
currentLang,
|
currentLang,
|
||||||
currentValue,
|
currentValue,
|
||||||
|
|||||||
Reference in New Issue
Block a user