RTKQ: selectFromResult is not applied to lazy hook trigger result #3938
Answered
by
EskiMojo14
borispinus
asked this question in
Q&A
-
According to this piece of code Is it expected behaviour or not? |
Beta Was this translation helpful? Give feedback.
Answered by
EskiMojo14
Dec 3, 2023
Replies: 1 comment
-
this is intentional - selectFromResult is for the hook result, as it decides when the component rerenders the trigger on the other hand can return whatever without affecting the component rerendering, and you can call any selectors you want on its result |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
borispinus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is intentional - selectFromResult is for the hook result, as it decides when the component rerenders
the trigger on the other hand can return whatever without affecting the component rerendering, and you can call any selectors you want on its result