Thank you for your question.
The data source will sync the changes from the offline state once its online()
method is called. Consider the following example for simplicity - the comments in the code will outline the behavior.
// go in offline mode
// add item to the data source
model = dataSource.add();
// go online - the new data is posted immediately
The above data source is not configured to use auto sync, it uses the simplest configuration. On the other hand, the autoSync
configuration will try to connect to the server once there are any changes in the data source. If you'd like to have more control of the data synchronization you may consider syncing the data yourself by calling the sync()
method or by toggling the online state.
Let me know if this is helpful for you and if you have further questions.