The function is getting executed only once. I tested with both alert and console.log My use case is,
I have to load the first 10 rows out of 1 million rows. When the user clicks on more button, I hit the server and retrieve the next 10 rows. For this use case, I thought we can only use odata model.