useQuery argument runs multiple times even when Query is skipped #4407
-
Hi there, I have the following query where the argument is a function that computes the data which the query needs. As you see, I dont want to run the Query until the conditions have been met, however I noticed that the buildSearchPayload was run multiple times. Any idea? thanks :) const { |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Standard React rules apply here - you probably want to put that |
Beta Was this translation helpful? Give feedback.
Standard React rules apply here - you probably want to put that
buildSearchPayload()
inside of auseMemo()
hook.