How to dynamically change InitialPageParams in react tan stack query ? #6785
Answered
by
firaki12345-cmd
firaki12345-cmd
asked this question in
Q&A
-
for me it shows undefined, even if when i call the isSuccess function of the useQuery i am using both the query below, First one is UseQuery, 2nd one is UseInfiniteQuery i am trying to pass the data i get from usequery to infinitequery, so it will be only enabled once isSuccess is called CODE BELOW:
|
Beta Was this translation helpful? Give feedback.
Answered by
firaki12345-cmd
Jan 29, 2024
Replies: 1 comment
-
ok i figured it out by just using only useInfinitequery, first i will fetch the data on the api/slug path and get the data from there and then pass it to the other path (IF THE DATA IS VALID)
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
firaki12345-cmd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ok i figured it out by just using only useInfinitequery,
first i will fetch the data on the api/slug path and get the data from there and then pass it to the other path (IF THE DATA IS VALID)