gameboyVito / react-native-ultimate-listview

A high performance FlatList providing customised pull-to-refresh | auto-pagination & infinite-scrolling | gridview layout | swipeable-row.
https://www.npmjs.com/package/react-native-ultimate-listview
MIT License
540 stars 87 forks source link

The "abortFetch()" method does not stop pagination #30

Open rogoja opened 7 years ago

rogoja commented 7 years ago

"react-native": "^0.46.4" "react-native-ultimate-listview": "^3.2.1"

The "abortFetch()" method does not stop pagination

Gif: ezgif_com_video_to_gif_1 Code:

onFetch = async (page = 1, startFetch, abortFetch) => {
        this.connection((data) => {
            this.nextOffset = data._meta.nextOffset;
            startFetch(data.items, COUNT_NEWS);
        }, this.nextOffset, COUNT_NEWS, (err) => {
            alert(err.message);
            abortFetch();
        });
    };
alkanyunus commented 7 years ago

Yes still causes same key extractor error because of it.