Open
Description
The call stack for the new dev mode checks starts/ends with useSelector
. But if you have a lot of nested selectors, finding the one actually causing the warning can be a bit tedious.
Would it be possible to add the location of the actual createSelector
-call to the warning?
E.g.:
//file a
const a = createSeletctor(...);
//file b
const b = createSeletctor(...); //causing the warning
const c = createSeletctor(...);
//file d
const d = createSeletctor(a, b, c, () => a+b+c /* not causing the warning */);
//file e
useSelector(d); //generates the warning, call stack states this line only
-> Please add "file b, line x" to the warning.
Metadata
Metadata
Assignees
Labels
No labels