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.

Bootstrap the device 'facilities' and other essential data into the single-page app

See original GitHub issue

In the Coach, User, and Facility plugins, we make substantial changes to the layout and behavior of each plugins’ Single-Page app depending on whether or not the device has 1 or more facilities.

This data (the facilities on the device) need to be available as soon as the app renders, but is (usually) requested asynchronously inside of a beforeEnter guard in the Vue Router, or perhaps somewhere else in a Vuex action. There is one bug #7222 that appears to be the result of the facilities not being loaded in time.

The ask: we bootstrap the facilities information into the SPA as we do for other crucial information, so it is always guaranteed that this data is available when the page renders.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
nucleogenesiscommented, Apr 9, 2021

Another thing we might consider is that we could bootstrap it using JS in the app.js for any individual plugin using the stateSetters method of the KolibriApp class that all of our plugins are extended from.

https://github.com/learningequality/kolibri/blob/7f76b3b2caa9b7866b318c7140d3a34704e3962d/kolibri/core/assets/src/kolibri_app.js#L38-L49

1reaction
rtibblescommented, Jul 14, 2020

Dozens is still not particularly problematic - thousands might be though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap · The most popular HTML, CSS, and JS library in the ...
Powerful, extensible, and feature-packed frontend toolkit. Build and customize with Sass, utilize prebuilt grid system and components, and bring projects to ...
Read more >
What is a Bootstrap and how does it work? - TechTarget
Bootstrap is a free, open source front-end development framework for the creation of websites and web apps. Designed to enable responsive development of...
Read more >
Create a Single Page Responsive Website Using Bootstrap
Everyone wants to create the website which is compatible with all the devices like computer, laptops, tablets, and mobiles.
Read more >
Bootstrapmincss Pdf ? - www.online.utsa.edu
web/mobile application: fetching data, displaying it, submitting new data. Other ... This practical book gets you started building pages with Bootstrap's ...
Read more >
Creating Single Page Apps on Demand - Code On Time
Examples of a single page applications explain how to create a custom data-aware SPA in a project with jQuery Mobile and Bootstrap.
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