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.

Support menu item reload configuration

See original GitHub issue

Currently

Selecting the menu item loads the previously loaded cached page and there is no way to force reload it based on configuration.

Wanted

Support attribute configuration reloadOnSelect to load a non-cached version of the page on every selection.

...
menu: {
    items: [{
        ...
        attributes: {
            reloadOnSelect: true
        }
    }]
}
...

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
emadalamcommented, Dec 28, 2016

@cpwc You may use the Milestone-Enhancements branch for now until it gets merged to master. I have added this functionality and you will need to add the configuration reloadOnSelect as mentioned in the issue description. Let me know if that works for you…

...
menu: {
    items: [{
        ...
        attributes: {
            reloadOnSelect: true
        }
    }]
}
...

@a-ignatov-parc Thanks for your inputs, your solution will also work 👍 Now coming to the two main things that you pointed out, too many 1) dependencies and 2) restrictions. I would really appreciate if you could elaborate on those points, haven’t had a chance to get an extra pair of eyes, would be really helpful if you could tell what dependencies and restrictions you precisely see so as I can improve upon those. Or if you prefer suggestions, feel free to open issues, or even contribute.

On a side note, the whole purpose of this library was to be minimalistic and provide a rock solid architecture to quickly build your TVML applications. I have recently added a demo app with streaming examples https://github.com/emadalam/appletv-demo and also the boilerplate code https://github.com/emadalam/appletv-boilerplate. I think there is a need to add more documentation and sample examples to highlight the many possibilities available with atvjs which are still not explained or demoed anywhere as of now.

P.S. @a-ignatov-parc I have checked your TVDML library before as well, nice work 👍 People who like that declarative approach, would really like TVDML.

1reaction
MarhyCZcommented, Jul 6, 2018

Hi, are you planning to add “reloadOnSelect” into mainline branch? I have no problem with including it by myself from your great commit in Milestone enhancements, but I think it’s a really nice feature, that would come handy for a lot of people that may not notice that it exists.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom Menu item to reload based on event using: e.force ...
Custom Menu item to reload based on event using: e.force:navigateToURL ... I wanted to make my community's page reloading as simple as it...
Read more >
Setting a refresh mode for menus - BMC Documentation
For all menu types (except character menus), you must set a refresh mode: On Connect—Retrieves the menu when the user opens the menu...
Read more >
Refresh Menu Options after new plugin install
Have recently added a new plugin but this plugin does not show up in the Adminimize menu options list so that I can...
Read more >
Helix Swarm Guide (2022.3)
You must be an admin or super user to reload the Swarm config cache. Navigate to the User id dropdown menu, select System...
Read more >
Menu Refresh Tips & Tricks - Toast Central
These tips and tricks will help you efficiently refresh your menu when you need it! Great for when you are reopening your restaurant...
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