Page 1 of 1

Appery Models always refreshing when launching the app

Posted: Thu Sep 17, 2015 8:35 pm
by Voltaire

Hi, I am using a local model with array , to manipulate parent and child pages, the rest is linked to local model, and then list is refreshed from the model, I realized that whenever I launch my application, the model is always refreshing, it is not using its local data or local cached images, although when refreshing the list page, it takes not more that 1 second to refresh (like it is comparing the rest data and the model), is there a way to speed up the launching of the app by using or comparing the model and the data being received. Like updating and comparing ??
Please if I did not make my idea clear, I can provide with screenshots or samples.


Appery Models always refreshing when launching the app

Posted: Thu Sep 17, 2015 8:38 pm
by Voltaire

What I meant is why the model is being erased when launching the app, and then when refreshing the same page, it won't take that time. Can we keep the data in the model ? and only updating it when launching instead of building it again ??


Appery Models always refreshing when launching the app

Posted: Fri Sep 18, 2015 7:02 am
by Serhii Kulibaba

Hello,

Do you use storage's variable's "localStorage" type? Could you show us all JS code and services with it?


Appery Models always refreshing when launching the app

Posted: Fri Sep 18, 2015 8:10 am
by Voltaire

If I share my app with the support, can you check what am talking about ?
Please if you can.


Appery Models always refreshing when launching the app

Posted: Fri Sep 18, 2015 1:30 pm
by Serhii Kulibaba

Please share (http://devcenter.appery.io/documentat...) your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and provide us with the following information:

1) App name
2) Test credentials if login functionality is implemented in your app
3) Detailed steps to reproduce the issue


Appery Models always refreshing when launching the app

Posted: Fri Sep 18, 2015 1:52 pm
by Voltaire

I did share the app and sent an email to support , ticket id is #14807

Thanks a lot Sergiy.

Regards;


Appery Models always refreshing when launching the app

Posted: Thu Oct 01, 2015 5:44 am
by Serhii Kulibaba

As I can see - you run services on the load event, which refresh your storage variables.