Skip to content

Commit

Permalink
chore: actually return the void
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Nov 27, 2020
1 parent 9f08935 commit 587429a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ function useDeepCompareEffect(
checkDeps(dependencies)
}
// eslint-disable-next-line react-hooks/exhaustive-deps
React.useEffect(callback, useDeepCompareMemoize(dependencies))
return React.useEffect(callback, useDeepCompareMemoize(dependencies))
}

export function useDeepCompareEffectNoCheck(
callback: EffectCallback,
dependencies: DependencyList,
): UseEffectReturn {
// eslint-disable-next-line react-hooks/exhaustive-deps
React.useEffect(callback, useDeepCompareMemoize(dependencies))
return React.useEffect(callback, useDeepCompareMemoize(dependencies))
}

export default useDeepCompareEffect

0 comments on commit 587429a

Please sign in to comment.