old_contents: import alt from '../alt'
  import TaskActions from '../actions/TaskActions'
  
  class TaskStore {
    constructor() {
      this.bindActions(TaskActions)
      this.tasks = []
      this.loading = false
    }
  
    onFetched(tasks) {
      this.loading = false
      this.tasks = tasks
    }
  
    onAdded(task) {
      this.tasks.push(task)
    }
  
    onPlay(playTask) {
      this.tasks = this.tasks.map((task) => {
        if (task.id === playTask.id) {
          task.status = 'doing'
        }
        return task
      })
    }
  
    onDone(doneTask) {
      this.tasks = this.tasks.map((task) => {
        if (task.id === doneTask.id) {
          task.status = 'done'
        }
        return task
      })
    }
  
    onDelete(taskToDestroy) {
      this.tasks = this.tasks.filter((task) => {
        return task !== taskToDestroy
      })
    }
  }
  
  export default alt.createStore(TaskStore, 'TaskStore')
  
new_contents: import alt from '../alt'
  import TaskActions from '../actions/TaskActions'
  
  class TaskStore {
    constructor() {
      this.bindActions(TaskActions)
      this.tasks = []
      this.loading = false
    }
  
    onFetched(tasks) {
      this.loading = false
      this.tasks = tasks
    }
  
    onAdded(task) {
      this.tasks.push(task)
    }
  
    onPlay(playTask) {
      this.tasks = this.tasks.map((task) => {
        if (task.id === playTask.id) { task.status = 'doing' }
        return task
      })
    }
  
    onDone(doneTask) {
      this.tasks = this.tasks.map((task) => {
        if (task.id === doneTask.id) { task.status = 'done' }
        return task
      })
    }
  
    onDelete(taskToDestroy) {
      this.tasks = this.tasks.filter((task) => {
        return task !== taskToDestroy
      })
    }
  }
  
  export default alt.createStore(TaskStore, 'TaskStore')
  
subject: Remove \n