Skip to content

TableView doesn't reload when I *replace* its Resource #248

@wildthink

Description

@wildthink

Everything works great until I create a new Service (with the same URL) and recreate the wrapping AppAPI (as per your example).

As per the stack overflow I have insured my tableView delegate and dataSource are properly set.

The following resource gets reassigned but the statusOverlay continues to spin and the I don't find any evidence that anything is reloaded.

    var repositoriesResource: Resource? {
        didSet {
            oldValue?.removeObservers(ownedBy: self)

            repositoriesResource?
                .addObserver(self)
                .addObserver(statusOverlay, owner: self)
                .loadIfNeeded()
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions