Hi all
I’ve been following the UI Builder videos but keep running into a small issue. Not sure how I am causing this to happen:
It seems to be that something causes the work to revert to an earler version. It may only occur when I allow the screen to sleep while UI Builder is open, I’m not sure.
So the result is that I stil have the working preview of what I had built, but in UI Builder itself I have something different, that obviously has then auto saved.
I have rebuilt the UI once and noticed the logic still seemed to be there in the background.
The preview also continues to work and save to the table, etc. It’s only when I refresh the preview that I lose the one that has been correct. I can also still go ‘back’ and acccess the working preview.
Maybe it won’t be a problem if I exit the UI Builder screen when not using.
Thanks
Hi @Danny_Fisher
Welcome to the Backendless community!
Let me summarize and please correct me if I miss something:
- you open the UI-Builder designer
- you open the UI Container preview
- at this moment both UI are the same ← is that correct?
- then you do some changes in the designer
- and the preview still shows the up-to-date UI ← is that correct?
- then your PC falls asleep for a while
- and when you come back you do changes in the already opened UIBuilder and you do not see any issues ← is that correct?
- but when you open the Preview do not see the latest changes ← is that correct?
is there any chance you work with the same UI-Container in different browser tabs or PCs?
Different browser tabs, yes
that might be the issue
When you UI-Builder in tab A it loads data from the server and then pushes changes back to the server
For instance:
- you open UI Container in a tab A it loads data which is up to date at 19:00
- then you open the same UI Container in a tab B it loads data which is up to date at 19:00, same as in tab A
- then you add a Button in tab A and it saves on the server it
- then you switch to the tab B, where there is no Button, you add an Input and it sends these changes to the server
- so finally:
- on the server we have the Input but it doesn’t have the Button
- in the tab A on the client, we can see the Button
- in the tab B on the client we can see the Input
Ahh, I’m pretty sure I wasn’t editing in differnt tabs. Just viewing, etc
But let me try it again and make sure not to have UI Builder open in more than one place!
The photo I attached here actually seems to have UI Builder open an two tabs, so that proabably is the issue.