How to update store with arary

When updating a store that is an array is this not the correct way updating one of the items? When i do this, no error is thrown but my view is not updated

const [uploadFiles, setUploadFiles] = createStore<FileUpload[]>([]);

...

setUploadFiles((f) => file.fileName === f.fileName, "status", (s) => "uploading");

...

            <For each={uploadFiles}>
              {(file: FileUpload) => (
                <div>
                  {file.file.name} - {file.status}
                </div>
              )}
            </For>
Was this page helpful?