fix loading issue

pull/118/head
Jon Eugster 3 years ago
parent 446a33e5e8
commit 95480a752d

@ -285,6 +285,12 @@ export function CommandLine({proofPanelRef}: {proofPanelRef: React.MutableRefObj
return () => { l.dispose() } return () => { l.dispose() }
}, [oneLineEditor, runCommand]) }, [oneLineEditor, runCommand])
//TODO: Intention is to run once when loading, does that work?
useEffect(() => {
console.debug('time to update')
loadAllGoals(proofPanelRef)
}, [])
/** Process the entered command */ /** Process the entered command */
const handleSubmit : React.FormEventHandler<HTMLFormElement> = (ev) => { const handleSubmit : React.FormEventHandler<HTMLFormElement> = (ev) => {
ev.preventDefault() ev.preventDefault()

@ -335,7 +335,6 @@ export function CommandLineInterface(props: {world: string, level: number, data:
} }
}, [selectedStep]) }, [selectedStep])
const completed = useAppSelector(selectCompleted(gameId, props.world, props.level)) const completed = useAppSelector(selectCompleted(gameId, props.world, props.level))
/* Set up updates to the global infoview seither you solved the level with warnings or your last command contains a syntax error Lean can't parseate on editor events. */ /* Set up updates to the global infoview seither you solved the level with warnings or your last command contains a syntax error Lean can't parseate on editor events. */

Loading…
Cancel
Save