#3511888: Recover from server-side errors that may happen during rendering preview
- Create
useUndoRedo()
hook to make it more convenient to dispatch undo and redo actions anywhere. - Refactor component in top bar to use the new hook.
- Improve error boundary around
<Preview />
to make use of undo when it's applicable.
Note: It appears that after loading an empty page and placing the first component, the undo action does not (always) get activated. This problem is currently present in 0.x
.