Closed msavaria closed 1 year ago
Very first time editor take few milliseconds to complete loading. I added a Thread.sleep to overcome this issue.
The StandaloneCodeEditor
Blazor component creates the wrapped JS editor instance in its OnAfterRenderAsync
method. As the parent component's OnAfterRenderAsync
is called before the child component, the JS instance is not yet created at that point. If you set the value any time after the StandaloneCodeEditor
's OnAfterRenderAsync
method is called, it should work.
When my component containing the Monaco editor is loaded, I fetch some data from a database and would like to display it in the editor as an initial value.
However, while the initial value is correctly displayed in the editor, I still the default Blazor error banner with this exception:
I am using version 3.0.0 with Blazor Server in Server rendering mode.
Here is my setup: