Skip to content

sample state

drstonebraker edited this page Sep 21, 2017 · 7 revisions
{
  entities: {
    users: {
      (all db fields),
      team_ids: [] (order by name)
    },
    teams: {
      (all db fields),
      channel_ids: [] (order by name),
      default_channel_id
    },
    channels: {
      (all db fields),
      message_ids: [] (order by created_at)
    },
    messages: {
      (all db fields),
      created_at,
      updated_at
    }
  },
  session: {
    currentUser: {
      id,
      username,
      team_ids: []
    }
  },
  ui: {

  },
  errors: {
    session: {
        username: [],
        password: [],
        errors: []
      }
  }
}

Clone this wiki locally