Skip to content

Commit

Permalink
#209: But needs to be investigated
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Mar 22, 2024
1 parent 0281536 commit 1676a35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/useGuaranteedMemo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function useGuaranteedMemo<T>(

if (
!ref.current ||
deps.length !== ref.current.prevDeps.length ||
deps.length !== ref.current.prevDeps?.length ||
ref.current.prevDeps.map((v, i) => v === deps[i]).indexOf(false) >= 0
) {
ref.current = {
Expand Down

0 comments on commit 1676a35

Please sign in to comment.