is it possible to use different queries using react-query conditionally? I have the the same component with quite complex logic in two different places in my app. The only difference is in the endpoint I want to hit with my infiniteQuery based on prop received by the component. What is the best way of achieving this?
I've went through documentation and different posts but have not found anything similar.
Via Active questions tagged javascript - Stack Overflow https://ift.tt/mzEuqFG
Comments
Post a Comment