SHARE
TWEET

Untitled

a guest Dec 3rd, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export function getHome(ctx) {
  2.   getSessionInfo(ctx);
  3.  
  4.   if(ctx.loggedIn){
  5.     get("appdata", "events", "Kinvey")
  6.     .then(data => {
  7.       ctx.events = data;
  8.  
  9.       this.loadPartials(partials).partial("./templates/home/home.hbs");
  10.     })
  11.     .catch(console.error);
  12.   } else {
  13.     this.loadPartials(partials).partial("./templates/home/home.hbs");
  14.   }
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top