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