use state query in repl

+ move locations to context
This commit is contained in:
Felix Roos 2022-02-25 20:10:49 +01:00
parent 29bdfb2d90
commit f1362b1c94
5 changed files with 25 additions and 23 deletions

View file

@ -18,7 +18,7 @@ export default function CodeMirror({ value, onChange, options, editorDidMount }:
}
export const markEvent = (editor) => (event) => {
const locs = event.value.locations;
const locs = event.context.locations;
if (!locs || !editor) {
return;
}