Skip to content

SearchScreen doesn't show CircularProgressIndicator first #15

@tenSunFree

Description

@tenSunFree

When SearchScreen requests network data, it first displays No results.
Screenshot_20220626-212147

Because the list is initialized by default, if the network data is not loaded, the returned list will cause data.length to be 0, and then display No results.
So consider trying not to initialize the list and let it return null.
2022-06-26_215549

Then consider displaying CircularProgressIndicator when data == null.
And when data.length == 0, displays No results.
2022-06-26_215740

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