 
   { getters, actions } = ActivityFlux
 
+  constructor: (props) ->
+
+    super props
+
+    @state = { isLoading: yes }
+
+
   getDataBindings: ->
     return {
       publicChannels               : getters.followedPublicChannelThreadsWithSelectedChannel

  componentWillMount: ->

    SidebarFlux.actions.loadVisibilityFilters().then =>
      EnvironmentFlux.actions.loadStacks()
      EnvironmentFlux.actions.loadMachines().then @bound 'setActiveInvitationMachineId'

      EnvironmentFlux.actions.loadTeamStackTemplates()


  renderStacks: ->

    if @state.stacks.size or @state.drafts.size
      <SidebarStackHeaderSection>
        {@prepareStacks()}
      </SidebarStackHeaderSection>
    else if @state.isLoading
      <div/>
    else
      <SidebarNoStacks />

