Why does my components design-time captions/text show briefly before the the rest service data binding kicks in when a page is loaded? Is there a way to prevent this?
Why does my components design-time captions/text show briefly before the the rest service data binding kicks in when a page is loaded? Is there a way to prevent this?
Hi - can you show where exactly this happens? Some code example or screenshot would help.
It is a pretty straight forward page with a list list component and labels in a grid component. The Labels default Text is shown in the attached image as in design-time. This page uses a rest service to list the data.
When navigating to the page in runtime it shows the default text in all the labels for a split second and then changes to the values in the rest service.
I have tried this. It makes no difference, unfortunately.
This problem is also present in the appery.io android testing app.
So you are getting this in desktop browser and on a Android device respectively?
Yes, that's correct.
Can you give us a public link to your app, so we can test this?
It's not really a problem -- this is how the browser works. The page is loaded into the DOM with default labels. Then a service is invoked and updates the labels. There is a short delay between that and what's why you see the previous labels. You could try clearing the previous data.
So everyone apps do this when using a rest service? Is there an example perhaps of the suggested workaround "clearing the previous data"?