effector / effector/eslint-plugin
Rule: `exhaustive-keys-for-useStoreMap`
Open
enhancement
preset:react
- Dominant language
- TypeScript
- Stars
- 94
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
`useStoreMap` can use `keys`-parameter for memorize result. It passes this array to `React.useMemo` to skip unnecessary re-renders. We can write a rule to detect possible errors in `keys`. This rule is highly inspired by https://github.com/facebook/react/blob/main/packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.