From 1320a1568efd1a28e55d90fdba4b4269f71a1c45 Mon Sep 17 00:00:00 2001 From: "Jose A. Cabaneros" Date: Wed, 5 Jun 2024 18:06:52 +0200 Subject: [PATCH] fix(semantic-queries): cancel track no results query on QueryPreviewUnmounted event --- packages/x-components/src/x-modules/tagging/wiring.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/x-components/src/x-modules/tagging/wiring.ts b/packages/x-components/src/x-modules/tagging/wiring.ts index afe3886116..91674748f7 100644 --- a/packages/x-components/src/x-modules/tagging/wiring.ts +++ b/packages/x-components/src/x-modules/tagging/wiring.ts @@ -227,7 +227,8 @@ export const trackNoResultsQueryWithSemanticsWire = filter( */ export const trackNoResultsQueryWithSemanticsWireDebounced = moduleDebounce( trackNoResultsQueryWithSemanticsWire, - ({ state }) => state.config.queryTaggingDebounceMs + ({ state }) => state.config.queryTaggingDebounceMs, + { cancelOn: 'QueryPreviewUnmounted' } ); /**