This is a migrated thread and some comments may be shown as answers.

syncEnd event

3 Answers 36 Views
JavaScript SDK
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Francesco
Top achievements
Rank 1
Francesco asked on 29 Feb 2016, 09:50 AM

Hello,
i found an unexpected behavior on syncEnd event of the sync process.
In short, if i handle the beforeExecute event and cancel some request...

everlive.on('beforeExecute', function(eventQuery) {
    if (eventQuery.isSync && /* some logic */) {
        eventQuery.cancel();
    }
});

the syncEnd event will not raised if all requests have been cancelled.
But i think this is not correct, because the syncStart event has been raised.

3 Answers, 1 is accepted

Sort by
0
Accepted
Tsvetomir Nedyalkov
Telerik team
answered on 01 Mar 2016, 03:55 PM
Hello Francesco,

Thank you for reporting this.

You are right - the correct behavior is to emit the syncEnd event even if the sync requests are cancelled.

The issue is logged in our backlog and will be fixed accordingly. I updated your Telerik Points as a small token of gratitude for your cooperation.

Regards,
Tsvetomir Nedyalkov
Telerik
 
Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
 
0
Francesco
Top achievements
Rank 1
answered on 29 Apr 2016, 10:07 AM

Hello,

There are news about the issue?

i've tested with 1.6.10 ...but I still have the same error.

Thanks.
Regards,

0
George
Telerik team
answered on 29 Apr 2016, 12:03 PM
Hello Francesco,

I am sorry to inform you that this particular issue was not fixed in the 1.6.10 release.

You can follow the releases and their respective release notes in our github repository: https://github.com/telerik/backend-services-js-sdk/releases.

Regards,
George
Telerik
 
Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
 
Tags
JavaScript SDK
Asked by
Francesco
Top achievements
Rank 1
Answers by
Tsvetomir Nedyalkov
Telerik team
Francesco
Top achievements
Rank 1
George
Telerik team
Share this question
or