Skip to content

Commit

Permalink
fix a long-lived bug (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Apr 26, 2024
1 parent c18e981 commit 96c4c04
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,5 @@ export function useZustand<State, Slice>(
rerender(true);
return slice;
}
if (!areEqual(sliceFromReducer, slice)) {
rerender(true);
}
return sliceFromReducer;
}

0 comments on commit 96c4c04

Please sign in to comment.