How to solve "The source model is detached" error

I’m working with the Monaco editor using convergence. If I disconnect the internet and connect again after few time, then the below message will appear in the console.

When the internet is connected after lost, domain connection with the server is done properly but it is giving a model is a detached error.

How to handle the situation when the connection with the server is lost and connected again?

Thanks in advance

If your internet connection is lost, the connection to the domain is also lost, and thus the model becomes detached. You would have to open the model again.

I would encourage you to look into using our offline mode and connection smoothing functionality to improve the user experience for these scenarios.