Skip to content

Commit

Permalink
update use debounced (#246)
Browse files Browse the repository at this point in the history
* update use debounced

* changeset

---------

Co-authored-by: Daniel Schneider <[email protected]>
  • Loading branch information
danielschneider22 and Daniel Schneider authored Aug 30, 2024
1 parent 76f8154 commit 98461cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/flat-experts-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@elasticpath/d2c-schematics": minor
---

Infinite search error caused by useEffectDebounce
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export const useDebouncedEffect = (

return () => clearTimeout(handler);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [...(deps || []), delay, effect]);
}, [...(deps || []), delay]);
};

0 comments on commit 98461cd

Please sign in to comment.