diff --git a/.changeset/flat-experts-give.md b/.changeset/flat-experts-give.md new file mode 100644 index 00000000..c53b5599 --- /dev/null +++ b/.changeset/flat-experts-give.md @@ -0,0 +1,5 @@ +--- +"@elasticpath/d2c-schematics": minor +--- + +Infinite search error caused by useEffectDebounce diff --git a/packages/d2c-schematics/product-list-page/files/src/lib/use-debounced.ts.template b/packages/d2c-schematics/product-list-page/files/src/lib/use-debounced.ts.template index 2b799e94..9f963143 100644 --- a/packages/d2c-schematics/product-list-page/files/src/lib/use-debounced.ts.template +++ b/packages/d2c-schematics/product-list-page/files/src/lib/use-debounced.ts.template @@ -10,5 +10,5 @@ export const useDebouncedEffect = ( return () => clearTimeout(handler); // eslint-disable-next-line react-hooks/exhaustive-deps - }, [...(deps || []), delay, effect]); + }, [...(deps || []), delay]); };