Replies: 1 comment
-
Passing the menu instead of the context worked, but I'm still confused why it was undefined in the first place |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here is my situation:
I declared a scene that simply ask for a value, and store it into the state
I'm in a submenu called
my_submenu
, and after an user press a button, I call the sceneNow, I'd like to reload my menu, as the value entered by the user needs to be displayed somewhere.
The issue is, whatever I try, I can't.
Here is what I tried
ctx.menu.update({ immediate: true }).catch((_) => { });
in my button's middleware, after awaitingctx.scene.enter(...)
note: for the two solution above, the functions are called, but nothing happens, I'm not sure why
ctx
(the one that implementMenuFlavor
to my scene), however, themenu
field becomes undefined once in my scene, so I'm unable to callupdate
on itI pass my ctx like this:
and read it like this in my scene:
None of these solutions worked. I think the third one is the most promising, but somehow
menu
becomes undefined...Beta Was this translation helpful? Give feedback.
All reactions