Skip to content
This repository was archived by the owner on May 12, 2020. It is now read-only.
This repository was archived by the owner on May 12, 2020. It is now read-only.

onLoadMoreAsync and isLoading relationship #45

@mvayngrib

Description

@mvayngrib

is onLoadMoreAsync supposed to load data and setState before it resolves? I ask because looking at the code, isLoading is set to false as soon as onLoadMoreAsync resolves. If onLoadMoreAsync only dispatches some action and resolves immediately, the loading indicator only blinks into existence briefly. Also your _shouldLoadMore method is then more likely to return true and trigger another fetch.

That said, your example in the README shows something that resolves immediately. Could you clarify? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions