Skip to content
Discussion options

You must be logged in to vote

that is simply what useQuery is doing:

const { data } = useQuery(key, queryFn)

will subscribe you to this query key, and this component will be informed about changes to the data.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@dominicfraser
Comment options

@dominicfraser
Comment options

@TkDodo
Comment options

@dominicfraser
Comment options

@TkDodo
Comment options

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