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") || "")
}
Source:stackexchange.com