CrossBreezeNL/crossmodel

Form-view empty after refreshing the page

ozcanxbreeze opened this issue · 2 comments

When you open a form-view and refresh the browser, the form-view will be empty.

That is because this line in the form-editor-widget.tsx never finishes.
await this.formEditorService.open(uri);

The formEditorService(form-server) or the model server has not been initalized.

Probably this event is started too soon and needs to wait for the plugins to have started. Take care not to introduce a loop/deadlock

I cannot reproduce this error anymore in the latest main. After refresh the form will render, sometimes with a small delay, but it consistently shows the contents.