code: async function toggleColor(store) {
    await store.update(state => {
      if (state.color === "blue") {
        state.color = "green"
      } else {
        state.color = "blue"
      }
    })
  }
docs: define action to toggle color