Skip to content

Some images won't load when loading a lot of images #58

@schlaegerz

Description

@schlaegerz

I was having some issue with some images not loading and I couldn't figure it out because it seem pretty random which ones would not load.

I found the problem is that you check "this.networkAvailable" to see if you have network, but there appears to be a race condition there "this.networkAvailable" is not set to true in time since it is dependent on an asychronous call.

By setting the prop networkAvaliable={true} I was able to completely get rid of this issue.

I think you should either default that to true, as an extra call when you don't have internet won't cause much harm, or you need to fix the race condition.

You should also probably note these parameters in the Readme.

Thanks for the otherwise great package!

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