@Lyle Pratt is correct in that you have a function that is copied from your โofflineโ store to your โonlineโ store. But to expand it, I will create a function inside your offline storage where it will save or copy your offline data to your online store.
Ext.define('MyProject.store.OfflineMessage', { config: { model: 'MyProject.model.Message'
On the other hand, you can also create the same functionality for your online store in which it stores your online data in your offline storage.
Allan jikamu
source share