title: Computed property react to localstorage change
body: <p>I'm saving an array into local storage</p>
  
  <p>and adding/removing from the array like.</p>
  
  <p>I want the count of the array to update in the component as and when new items get added to the array in localstorage</p>
  
  <p>I am using a computed property:</p>
  
  <pre><code> numOfCodes: {
        // getter
        get: function() {
          let storageItems = localStorage.getItem("items");
          if (storageItems) {
            var items = JSON.parse(storageItems);
            return items.length;
          }
          return 0;
        }
      }
  </code></pre>
  
  <p>The count is not changing as expected. it remains the same.</p>
  
  <p>I have tried using vuex, but still have the issue. the goal is having the value react to the localstorage change</p>