Skip to content

Possible to derive multiple values from selectFromResult without causing re-renders? #4716

Answered by markerikson
vilbedawg asked this question in Q&A
Discussion options

You must be logged in to vote

Along those lines, just make sure you create the selector instance outside the component so it sticks around and can memoize properly:

https://redux.js.org/tutorials/essentials/part-8-rtk-query-advanced#selecting-values-from-results

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@vilbedawg
Comment options

@markerikson
Comment options

Answer selected by vilbedawg
@vilbedawg
Comment options

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