Start a new topic

Should return be used with response.xxxx() or not?

Hi


As per the guide 

http://devcenter.kinvey.com/rest/reference/business-logic/reference.html#response


the response.complete/error/continue should be used with a return statement but almost all sample code in the same guide doesnt use return anywhere. So the question is what are the side effects of using return and not using return. What will happen if the return is not used? We have had issues with our collection hooks/endpoints behaving erratically and I am wondering if not using return can be a cause.


Thanks

Pankaj



1 Comment

Pankaj,


I think that's actually outdated.  Please continue just using response.complete / response.continue as you have been.


Thanks,

Login or Signup to post a comment