Fix syntax highlighting on code pane open/close (#3083)

This commit is contained in:
49fl
2024-07-20 04:45:38 -04:00
committed by GitHub
parent ac120838e5
commit 397839da84

View File

@ -163,7 +163,7 @@ export function useCodeMirror(props: UseCodeMirror) {
effects: StateEffect.reconfigure.of(targetExtensions),
})
}
}, [targetExtensions])
}, [targetExtensions, view, isFirstRender])
return { view, setView, container, setContainer, state, setState }
}