socialappslab / appcivist-patterns

The grunt wrapper around patternlab-node core, providing tasks to interact with the core library and move supporting frontend assets.
GNU General Public License v2.0
2 stars 1 forks source link

General loading pattern #100

Closed cdparra closed 7 years ago

cdparra commented 7 years ago

Design and implement a general "loading wheel" or similar pattern, covering the whole screen while important things load.

Expected behavior

thiagodemellobueno commented 7 years ago

Allow me to recommend http://github.hubspot.com/pace/docs/welcome/

https://raw.githubusercontent.com/bgryszko/react-native-circular-progress/master/screenshot.gif

cdparra commented 7 years ago

Moved back to "in progress". PACE loader does not play well with WebSokets

cdparra commented 7 years ago

Fixed by adding the following at the very beginning of appcivist_ui_core

 window.paceOptions = {
    ajax: false,
    restartOnRequestAfter: false,
    document: false, // disabled
    eventLag: false, // disabled
    elements : {
      selectors: [".appmain"] // limiting selector to control to appmain
    }
  };