Skip to content

Is there any way to abort previous RTKQ request? #4076

Closed Answered by Leeasdw
Leeasdw asked this question in Q&A
Discussion options

You must be logged in to vote

nvm, I was doing the wrong thing. I was taking timestamps from lazy trigger method and then write it to the state. Instead I needed to take it from useQuery directly, as you said. Then rtkq manages them correctly by itself

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Leeasdw
Comment options

@Leeasdw
Comment options

Answer selected by Leeasdw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants