message: fix: cache the debounced handler closes
diff: @@ -81,7 +81,10 @@ export function createCommonHandlers (ctx) {
  ctx.setFlags({ touched: true, untouched: false });
  };
  - const onValidate = debounce(
  + let onValidate = ctx.$veeHandler;
  + // Handle debounce changes.
  + if (!onValidate || ctx.$veeDebounce !== ctx.debounce) {
  + onValidate = debounce(
  () => {
  const pendingPromise = ctx.validate();
  // avoids race conditions between successive validations.
  @@ -96,6 +99,12 @@ export function createCommonHandlers (ctx) {
  ctx.debounce
  );
  + // Cache the handler so we don't create it each time.
  + ctx.$veeHandler = onValidate;
  + // cache the debounce value so we detect if it was changed.
  + ctx.$veeDebounce = ctx.debounce;
  + }
  +
  return { onInput, onBlur, onValidate };
  }
  