load showHelp on changing level

pull/118/head
Jon Eugster 3 years ago
parent 48b55a9ebc
commit fb2f9cc3aa

@ -93,14 +93,13 @@ function PlayableLevel({worldId, levelId}) {
// // TODO: Thats the wrong behaviour probably
// chatRef.current!.scrollTo(0,0)
// TODO: That's a problem if the saved proof contains an error
// Reset command line input when loading a new level
setCommandLineInput("")
}, [levelId])
// Load the selected help steps from the store
useEffect(() => {
// Load the selected help steps from the store
setShowHelp(new Set(selectHelp(gameId, worldId, levelId)(store.getState())))
}, [])
}, [gameId, worldId, levelId])
useEffect(() => {
// TODO: For some reason this is always called twice

Loading…
Cancel
Save