question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Instances of menu

See original GitHub issue

Having different instances of the menu

Is it possible to have different instances of the menu opened in the application. For example let’s say we have an array of messages coming to the bot, and for each message we need to have a separate instance with it’s own state of buttons?

Modifying currently selected values of menu.select

This question is coming from previous one more or less. I have the situation explained above with select rows. So let’s say the options are a, b and c with a being default one which gets passed to the menu. When user makes a selection b I delete the message with menu, but the instance is not terminated so, when the next message comes and menu pops up again the default option is b now. The questions here is:

Shall I terminated menu together with the currently selected options or there is a more convenient way of updating values there ?

Thanks again for your patience and time, just want to get deeper understanding of the lib, cause I totally enjoy using it!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
d-ivashchukcommented, Jun 18, 2019

No problem at all, because after approx one month of randomly appearing bug I think I finally stumbled on solution when I was preparing the answer for your question and exploring the web hook. There was a regex catastrophic backtracking bug in my bot code which made the checks run for millions of times without giving me any errors, that’s why I couldn’t spot it. So you indeed helped, and your library is also super nice.

Have a very pleasant day and thanks again for being helpful 😃 Closing the issue

0reactions
EdJoPaTocommented, Jun 18, 2019

Sometimes linters spot issues with regex expressions. Linters in general are helpful for a lot of performance related stuff. I learned a lot of JS stuff from using linters.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating an instance of a menu item - Stack Overflow
Here is how you can manipulate the menu instance very easily within those methods as well where you don't have Menu instance as...
Read more >
Multiple instances of menu items - MSDN - Microsoft
When using SQL Server Management Studio Express I get multiples of all the standard Windows menu items as well as in the dropdowns....
Read more >
Instance Show View Menu - Oracle Help Center
Instance Show View Menu. To use a view other than Tree Order, select View, then Show, and then select options as shown before....
Read more >
Multiple Instances | UberMenu 3 Knowledgebase - SevenSpark
If you have multiple menus that already exist on your site, you can activate UberMenu on each of them (assuming the theme supports...
Read more >
Managing Instances from the All Instances Menu
The All Instances menu opens from the All Instances node in the Instance Management list. Use to select an option from the All...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found