Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Debouncer API Reference
Throttler API Reference
Rate Limiter API Reference
Queue API Reference
Batcher API Reference

providePacerOptions

ts
function providePacerOptions(host, options): void;
function providePacerOptions(host, options): void;

Defined in: provider/PacerProvider.ts:55

Supplies reactive defaults for this host and its descendants, including across shadow roots. Call during construction, before creating utilities. The nearest provider wins, and each utility's local options override provider defaults.

Parameters

host

ReactiveControllerHost

options

LitPacerOptions<PacerProviderOptions>

Returns

void

Example

ts
constructor() {
  super()
  providePacerOptions(this, () => ({
    debouncer: { leading: this.leading },
  }))
}
constructor() {
  super()
  providePacerOptions(this, () => ({
    debouncer: { leading: this.leading },
  }))
}