feat(hook): add markers state and setter to useProblem hook

This commit is contained in:
cfngc4594 2025-03-25 13:05:22 +08:00
parent a7d0bc54bc
commit a55ef88745

View File

@ -39,11 +39,13 @@ export const useProblem = () => {
const { const {
hydrated, hydrated,
editor, editor,
markers,
webSocket, webSocket,
globalLang, globalLang,
currentLang, currentLang,
currentValue, currentValue,
setEditor, setEditor,
setMarkers,
setWebSocket, setWebSocket,
setGlobalLang, setGlobalLang,
setCurrentLang, setCurrentLang,
@ -112,8 +114,10 @@ export const useProblem = () => {
return { return {
hydrated, hydrated,
editor, editor,
markers,
webSocket, webSocket,
setEditor, setEditor,
setMarkers,
setWebSocket, setWebSocket,
globalLang, globalLang,
currentLang, currentLang,