Skip to content

Commit

Permalink
Merge pull request #1143 from jb747/main
Browse files Browse the repository at this point in the history
if debounceDelay is null, keep it null
  • Loading branch information
hayes authored Jan 28, 2024
2 parents 2a1843d + 1e1f885 commit 58c2838
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/happy-cars-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@pothos/plugin-smart-subscriptions": patch
---

if debounceDelay is set to null, disable debounce timeout
2 changes: 1 addition & 1 deletion packages/plugin-smart-subscriptions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class PothosSmartSubscriptionsPlugin<Types extends SchemaTypes> extends B
this.subscribe = this.builder.options.smartSubscriptions.subscribe;
this.unsubscribe = this.builder.options.smartSubscriptions.unsubscribe;
this.debounceDelay =
this.builder.options.smartSubscriptions.debounceDelay ?? DEFAULT_DEBOUNCE_DELAY;
this.builder.options.smartSubscriptions.debounceDelay === null ? null : DEFAULT_DEBOUNCE_DELAY;
}

override onOutputFieldConfig(fieldConfig: PothosOutputFieldConfig<Types>) {
Expand Down

1 comment on commit 58c2838

@vercel
Copy link

@vercel vercel bot commented on 58c2838 Jan 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.