- Issue created by @jessebaker
It’s possible to get trapped in an unrecoverable error state in the XB UI.
Adding modifying the layoutModel in such a way that the POST to /xb/api/layout/{entitytype}/{entityId} returns an error, we show a modal alert.
Clicking Try again and thus re-requesting the preview endpoint won’t fix it, the issue is server side.
Refreshing the page won’t fix it - the erroring layout/model is now autosaved which means that refreshing the page just brings it back.
If the user was able to press Undo and THEN re-request the preview endpoint they might get unstuck, but if they refresh the page, they would lose the undo history and become stuck again.
The user can’t access the preview UI/layers panel to remove the offending component themself because the alert is modal.
You can’t remove pending autosaves from the Publish/Review button (I don’t know if you will be able to do this in future?).
Obviously in an ideal world we'd fix the causes of the crash! But some ideas
Active
0.0
Page builder