Skip to content

ReloadItem() may cause a hang #2

@hk05

Description

@hk05

ReloadItem() may cause problems (i.e. hang on large number of items).
Instead of ReloadItem(), use reloadData(forRowIndexes:columnIndexes:)

Motivation

OutlineView.swift, line 49 -> reloadItem()
This code may cause a hang (spinning wheel).

Desired solution

Replace line 49, reloadItem() with:
reloadData(forRowIndexes: IndexSet(integer: row(forItem: item)), columnIndexes: IndexSet(0 ..< numberOfColumns))

Considered alternatives

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions