Commit f11a686
fix: Remove warnings from useDeepCompareEffect (fixes #755)
Removes console.warn statements that were causing frustration for valid
use cases where dependencies could be either undefined or an object.
The hook works correctly regardless of dependency types (primitives,
objects, or mixed), so the warnings were unnecessary and frustrating
for developers with valid use cases.
This directly addresses issue #755 where users reported frustration
with warnings appearing in local development environments when using
the hook with dependencies that could be undefined or objects.1 parent 9ef9535 commit f11a686
2 files changed
+9
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
26 | 35 | | |
27 | 36 | | |
28 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | 5 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 6 | | |
23 | 7 | | |
24 | 8 | | |
| |||
0 commit comments