Skip to content

How to properly render from "cache" without useQuery #1979

Answered by JoviDeCroock
lucax88x asked this question in Q&A
Discussion options

You must be logged in to vote

Instead of using a promise you should open a subscription with the help of the wonka library which the react library uses under the hood. However why would you not use useQuery, pagination can still be used like this example https://github.com/FormidableLabs/urql/blob/main/examples/with-pagination/src/PaginatedNpmSearch.jsx

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lucax88x
Comment options

Answer selected by lucax88x
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