Skip to content

Commit

Permalink
Remove deps list from useSelector hook
Browse files Browse the repository at this point in the history
  • Loading branch information
afshinm committed Jan 14, 2024
1 parent 4219ea6 commit 01c83cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useSelector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function useSelector<T>(selector: (state) => T) {
});

return unsubscribe;
}, [store, current]);
}, []);

return current;
}

0 comments on commit 01c83cd

Please sign in to comment.