From 2f553b8b45da5788cec35efbf723a7604cb69eca Mon Sep 17 00:00:00 2001 From: Nihal Bhatnagar Date: Wed, 18 Dec 2024 16:25:47 -0500 Subject: [PATCH 1/2] Fix OSW bug that resulted in two out of date calls --- packages/client/src/objectSet/ObjectSetListenerWebsocket.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/client/src/objectSet/ObjectSetListenerWebsocket.ts b/packages/client/src/objectSet/ObjectSetListenerWebsocket.ts index 6c00b982a..e83ee36c0 100644 --- a/packages/client/src/objectSet/ObjectSetListenerWebsocket.ts +++ b/packages/client/src/objectSet/ObjectSetListenerWebsocket.ts @@ -523,7 +523,6 @@ export class ObjectSetListenerWebsocket { this.#logger?.error(error, "Error in onOutOfDate callback"); this.#tryCatchOnError(sub, false, error); } - sub.listener.onOutOfDate(); }; #handleMessage_subscribeResponses = ( From 88e5bb719681fba2af09f08a1c6825212bdd0c4e Mon Sep 17 00:00:00 2001 From: Nihal Bhatnagar Date: Wed, 18 Dec 2024 16:29:21 -0500 Subject: [PATCH 2/2] changeset --- .changeset/big-news-thank.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/big-news-thank.md diff --git a/.changeset/big-news-thank.md b/.changeset/big-news-thank.md new file mode 100644 index 000000000..0c7e181bb --- /dev/null +++ b/.changeset/big-news-thank.md @@ -0,0 +1,5 @@ +--- +"@osdk/client": patch +--- + +Fix onOutOfDate handler from being fired twice