diff --git a/sdk/js/signals/src/connector/ormConnectionHandler.ts b/sdk/js/signals/src/connector/ormConnectionHandler.ts index 1b93c7fd..932d1484 100644 --- a/sdk/js/signals/src/connector/ormConnectionHandler.ts +++ b/sdk/js/signals/src/connector/ormConnectionHandler.ts @@ -69,8 +69,9 @@ export class OrmConnection { this.resolveReady = resolve; }); - ngSession.then(({ ng, session }) => { - console.log("ng and session", ng, session); + ngSession.then(async ({ ng, session }) => { + console.log("Creating orm connection. ng and session", ng, session); + await new Promise((resolve) => setTimeout(resolve, 2000)); try { ng.orm_start( (scope.length == 0 @@ -153,6 +154,11 @@ export class OrmConnection { }; private handleInitialResponse = (initialData: any) => { + console.debug( + "[handleInitialResponse] handleInitialResponse called with", + initialData + ); + // Assign initial data to empty signal object without triggering watcher at first. this.suspendDeepWatcher = true; batch(() => { @@ -162,7 +168,10 @@ export class OrmConnection { for (const newItem of recurseArrayToSet(initialData)) { this.signalObject.add(newItem); } - console.log("data received", this.signalObject); + console.log( + "[handleInitialResponse] signal object:", + this.signalObject + ); }); queueMicrotask(() => {