var {Actions} = require('flummox');

var _ = require('lodash');

class MeetingActions extends Actions {
  constructor(registry, api) {
    super();
    
    this.registry = registry;
    this.api = api;
  }

  fetch(meetingKey) {
    // var meetingStore = this.registry.getStore('meeting');
    // var meeting = meetingStore.getByKey(meetingKey);
    // if (meeting) {
    //   return Promise.resolve(meeting);
    // }

    return this.api.meetingFetch(meetingKey);
  }

  join(meetingKey) {
    return this.api.meetingJoin(meetingKey);
  }

  create(meeting) {
    var currentUserStore = this.registry.getStore('currentUser');

    return this.api.meetingCreate(meeting);
  }
}

module.exports = MeetingActions;

@@ -222,27 +222,24 @@
 ngKey) %7B%0A   
- //
  var meeting
@@ -284,19 +284,16 @@
 g');%0A   
- //
  var mee
@@ -337,19 +337,16 @@
 ey);%0A   
- //
  if (mee
@@ -356,19 +356,16 @@
 g) %7B%0A   
- //
    retur
@@ -399,11 +399,8 @@
 %0A   
- //
  %7D%0A%0A

Make tilegrid way faster.