Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RadListView notifyPullToRefreshFinished not working sometimes #647

Closed
bhavincb opened this issue May 4, 2018 · 3 comments
Closed

RadListView notifyPullToRefreshFinished not working sometimes #647

bhavincb opened this issue May 4, 2018 · 3 comments

Comments

@bhavincb
Copy link

bhavincb commented May 4, 2018

https://play.nativescript.org/?template=play-ng&id=zWAV8w&v=2
above is playground demo link which can be used to reproduced the bug.
in above example when pullToRefresh initiated from both the tabs for around 10 to 20 times. then
call to notifyPullToRefreshFinished() doesn't work and RadListView remains in Refreshing states.
at least it seams from UI.

in above example if you run code inside zone.runOutsideAngular then this bug produces more frequently.

doRefresh(type, args) {
        let refresher = args.object;
        this.zone.runOutsideAngular(() => {
            // setTimeout(() => {
        this.http.get("https://reqres.in/api/users?per_page=12").toPromise().then((data) => {
            let d: any = data;
            d = d.data
            console.log(d)
            d=d.concat(d);
            d=d.concat(d);
            d=d.concat(d);
            d=d.concat(d);
            this.group.images = d;
            this.ref(refresher);
        })
                
            // }, 1000)    
         })
        
    }

in real project it happens every single time. when used 2 RadListView inside 2 tabs of TabView and setting same function as refreshCallback to both the RadListView. i'm unable to attach that project that is why i had created playground demo in which bug happens less frequently.

@NickIliev
Copy link
Collaborator

@bhavincb is this happening on a specific device/API level? I've tested on several Andriod devices but was not able to reproduce any issue with your Playground demo.

@bhavincb
Copy link
Author

bhavincb commented May 11, 2018

hii @NickIliev ,
i had tested it on xiomi redmi 3s prime and samsung J7 max. issue can be reproduced by rapidly refreshing both ListView one after another.using playground demo in some devices it may take very long to produce. but it is there. this issue was reported by through testing on both devices.

@NickIliev
Copy link
Collaborator

@bhavincb possibly related to this known issue. As I am not able to reproduce on any device on my side I am currently closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants