welldone-software/why-did-you-render

Wdyr ignores equality function in useSelector

Open

#190 opened on 2021年4月16日

GitHub で見る
 (3 comments) (1 reaction) (0 assignees)JavaScript (10,560 stars) (188 forks)batch import
Low prioritybuggood first issuehelp wanted

説明

When using wdyr I noticed that it reports unnecessary renders caused by useSelector with an equality function even though the equality function causes the render to be avoided. Looking at the code it looks like wdyr does not consider the result of the equality function.

An example:

useSelector(someSelector, (prev, next) => true);

コントリビューターガイド

Wdyr ignores equality function in useSelector · welldone-software/why-did-you-render#190 | Good First Issue