Replies: 1 comment
-
That won't happen if you memoize the selector.
If you have an inline function for select, memoize it with useCallback. If it doesn't have dependencies, you can also consider moving it out of the render function. See: https://tkdodo.eu/blog/react-query-data-transformations#3-using-the-select-option |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
Does it make sense to add an option to not deep-equal check the selector data if the raw response data is shared?
My main goal is to avoid running the deep-equal checks twice when I know the selectors will never change the data if the input (response data) didn't change.
Beta Was this translation helpful? Give feedback.
All reactions