Quantcast
Viewing all articles
Browse latest Browse all 4837

Hook for background reload?

@accelerate wrote:

I'm using findAll() with the default background reloading behavior so when findAll() is called again, it'll return the cached records immediately while fetching from the server again. Is there a hook or a way to tell when this background reloading is done?

My use case is that my API is quite slow, so when findAll() is called again, I don't want to show a loading screen or no data while waiting for the API to return when I can just show the cached versions. However, I at least want to give an indication (perhaps a little spinning icon in the upper right) signifying data is being reloaded. So is it possible to track background reloading?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4837

Trending Articles