Skip to content

RTKQ: selectFromResult is not applied to lazy hook trigger result #3938

Answered by EskiMojo14
borispinus asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by borispinus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants