Skip to content

Commit

Permalink
fix(semantic-queries): cancel track no results query on QueryPreviewU…
Browse files Browse the repository at this point in the history
…nmounted event (#1507)
  • Loading branch information
joseacabaneros authored Jun 7, 2024
1 parent c323199 commit cc6518e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/x-components/src/x-modules/tagging/wiring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ export const trackNoResultsQueryWithSemanticsWire = filter(
*/
export const trackNoResultsQueryWithSemanticsWireDebounced = moduleDebounce(
trackNoResultsQueryWithSemanticsWire,
({ state }) => state.config.queryTaggingDebounceMs
({ state }) => state.config.queryTaggingDebounceMs,
{ cancelOn: 'QueryPreviewUnmounted' }
);

/**
Expand Down

0 comments on commit cc6518e

Please sign in to comment.