Skip to content

SimpleSectionedModelCollection should ensure any .loaded event results in loaded state #163

@danielrhammond

Description

@danielrhammond

Basically https://github.com/dropbox/pilot/blob/master/Core/Source/MVVM/SimpleModelCollection.swift#L78 needs to add an empty section [.loaded([])] if there are no sections at all since flattenedState treats [] as .notLoaded

Which leads to the surprising interaction where a consumer sends an empty load that is interpreted as content never having loaded.

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