Skip to content

How to refetch query with params #351

Discussion options

You must be logged in to vote

Recommended: Turn your variables into a permanent query key part and just update them with state or props

useQuery(['data_sources', { variables }], getDataSources)
// or
useQuery(['data_sources', variables], getDataSources)

Replies: 5 comments 40 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
31 replies
@TkDodo
Comment options

@CharanRJS
Comment options

@beingsandthings
Comment options

@TkDodo
Comment options

@beingsandthings
Comment options

Answer selected by tannerlinsley
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@TkDodo
Comment options

@cliffordfajardo
Comment options

@TkDodo
Comment options

@adriannecris
Comment options

Comment options

You must be logged in to vote
5 replies
@vossmalte
Comment options

@1mehdifaraji
Comment options

@TkDodo
Comment options

@1mehdifaraji
Comment options

@vossmalte
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet