Overwrite functions from offline api

Hello, i need your help, for know how to overwrite one callback from readMixedCollection

"../10.0.510-1.4.2-2/app/js/offline/api/read-mixed-collection.js"

In specific the callback is localSyncSuccess()

Also i need rewrite function _localRead() locating into the "../10.0.510-1.4.2-2/app/js/offline/api/read-recents-collection.js"

Somebody know how to make it?

Thanks for yours responses

Parents
  •    Hey!
       Yes, your custom code is supposed to live separately from SDK code. This is a good development practice indeed

       However, if you find yourself in situation when you absolutely have to make changes inside SDK code to implement your desired functionality you can go ahead and modify SDK code.

       However be aware that by doing this you can introduce errors and break something. So do it carefully. Also be aware that future releases of SDK may become incompatible with your changes

    P.S. Do your best to find a way to write custom code w/o modifying SDK  - this is my recommendation

Reply
  •    Hey!
       Yes, your custom code is supposed to live separately from SDK code. This is a good development practice indeed

       However, if you find yourself in situation when you absolutely have to make changes inside SDK code to implement your desired functionality you can go ahead and modify SDK code.

       However be aware that by doing this you can introduce errors and break something. So do it carefully. Also be aware that future releases of SDK may become incompatible with your changes

    P.S. Do your best to find a way to write custom code w/o modifying SDK  - this is my recommendation

Children
No Data