load showHelp on changing level
This commit is contained in:
@@ -93,14 +93,13 @@ function PlayableLevel({worldId, levelId}) {
|
|||||||
// // TODO: Thats the wrong behaviour probably
|
// // TODO: Thats the wrong behaviour probably
|
||||||
// chatRef.current!.scrollTo(0,0)
|
// 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
|
// Reset command line input when loading a new level
|
||||||
setCommandLineInput("")
|
setCommandLineInput("")
|
||||||
}, [levelId])
|
|
||||||
|
|
||||||
// Load the selected help steps from the store
|
// Load the selected help steps from the store
|
||||||
useEffect(() => {
|
|
||||||
setShowHelp(new Set(selectHelp(gameId, worldId, levelId)(store.getState())))
|
setShowHelp(new Set(selectHelp(gameId, worldId, levelId)(store.getState())))
|
||||||
}, [])
|
}, [gameId, worldId, levelId])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// TODO: For some reason this is always called twice
|
// TODO: For some reason this is always called twice
|
||||||
|
|||||||
Reference in New Issue
Block a user