Skip to content

Commit c029d21

Browse files
committed
fix: don't use math.random
- perf! - unlikely but possible random # collision
1 parent 3c3a6cb commit c029d21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function shallowEquals(a, b) {
2121
}
2222

2323
function getArtificialDependency() {
24-
return Math.random()
24+
return {}
2525
}
2626

2727
function useConditionalEffect(callback, dependencies, isEqual = shallowEquals) {

0 commit comments

Comments
 (0)