Description
My client app will disconnect/reconnect randomly, sometimes many times during a single session. I think I've tracked the issue down to the onLoadDocument hook firing without a document, even after the client has loaded the document. When this happens, the extension I've written to load my documents from the remote store will throw an error because it can't determine a document ID without the document. I think this error is bubbling up and disconnecting the client.
I have my server and client isolated in a sandbox, so I'm certain that I only have one client attempting to connect. Does anyone have any ideas about why this is happening?
Expected behavior
Consistent data in the onLoadDocument hook.
Screenshot, video, or GIF
Here's a screenshot of my client's network requests during one of the sessions I described above
Here's an example log.json file of the hook firing without a document.
Description My client app will disconnect/reconnect randomly, sometimes many times during a single session. I think I've tracked the issue down to the
onLoadDocument
hook firing without a document, even after the client has loaded the document. When this happens, the extension I've written to load my documents from the remote store will throw an error because it can't determine a document ID without the document. I think this error is bubbling up and disconnecting the client.I have my server and client isolated in a sandbox, so I'm certain that I only have one client attempting to connect. Does anyone have any ideas about why this is happening?
Expected behavior Consistent data in the
onLoadDocument
hook.Screenshot, video, or GIF Here's a screenshot of my client's network requests during one of the sessions I described above
Here's an example log.json file of the hook firing without a document.
Environment