You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It correctly generates two query hooks for search endpoint:
useSearch
useSearchInfinite
However, both use the same function for assigning queryKey value: getSearchQueryKey and thus both by default are using same queryKey.
This can lead to issues if both hooks are used in different pages. Here's an example case, see TkDodo's comment: TanStack/query#7633
My suggestion is that orval would automatically generate getSearchInfiniteQueryKey for infinite query which is the same as getSearchQueryKey but with "infinite" as part of the query key. Or it could be even something like this: