You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will make it easier to see which values and selector functions are related, and it will make it easier to grep code.
Examples of incorrect code:
constfoo=useSelector(selectBar);// Should warn to use `const bar`constposts=useSelector(selectUserPosts);// Should warn to use `const userPosts`
Examples of correct code:
constbar=useSelector(selectBar);constuserPosts=useSelector(selectUserPosts);const{ foo }=useSelector(selectBar);// Destructuring is not checkedconstfoo=useSelector((state)=>state.bar);// Inline functions are not checked
The text was updated successfully, but these errors were encountered:
Enforce
const <name> = useSelector(select<Name>)
naming convention.It will make it easier to see which values and selector functions are related, and it will make it easier to grep code.
Examples of incorrect code:
Examples of correct code:
The text was updated successfully, but these errors were encountered: