title: vue computed : add new computed value from created lifecycle hook
body: <p>I'm beginner in vue</p>
  
  <p>I'm trying to push a computed data with name , that name come from vuex which comes after creating the instance</p>
  
  <p>How can i push new computed property to the instance in the created() hook ??</p>
  
  <p>Here is the code</p>
  
  <pre><code>computed: {
              // 3 - i want to extract the object properties here computed 
              // that is easy bu using spread operator ...
              // Problem : vue intialize computed before the created() hook
              // so the spreed work befor passing the filling the object
              ...this.mapGettersObj
          },
  
          created(){
              // 1- i can access only this line after creating the object
              this.stocks = this.$store.state
              let arr=[]
              for (let stock in this.stocks){
                  arr.push(stock+'Getter')
              }
              // 2 - mapGetters returns an object
              this.mapGettersObj=mapGetters(arr)
          }
  </code></pre>
  
  <p>If I can create new computed value after creating that will solve the problem</p>