[Vuejs]-Vue 3, overwriting array after refreshing the page

0👍

Turns out I found the bug myself, and it was basically stupid. I was setting the "files" value each time instead of assigning it to a variable from localStorage.

if(storage.getItem("files")) {
  store.files = JSON.parse(storage.getItem("files") || "")
}

Leave a comment