Replies: 1 comment 2 replies
-
The top level array is new in every render, but |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I use
useQueries
to make multiple API requests with different parameters and use the return value in a reactuseMemo
deps list. It's similar to the following.The problem is the
useQueries
will always return a new reference, so theuseMemo
will need to execute the callback every time due to the difference of the deps list during the react rerender. Is there a way to avoid this happening?Beta Was this translation helpful? Give feedback.
All reactions