Make sure local storage is sync when load a page
Application Type

Hi, right now I apply offline sync to an application, only 1 page of this app needs to work in offline mode. The page contains a form with many dropdowns, needed to fetch from 7 Local Entities. 

What I have done is Trigger Offline data sync on AppReady and SyncOnLogin, but when I get to the page, only 1 or 2 dropdowns is finished sync, all the rest have nothing. 

My question is how to make sure all the data is synced when the page is loaded to avoid that happens?

Rank: #294

Hi Logan,

If you use the Common\Layout, you can see there is an event OnSyncComplete (see attachment) that will triggered when sync is complete. So you can put some logic there to check if the sync is already done.