Skip to content
Discussion options

You must be logged in to vote

Don't use queryClient.getQueryData in a component - always useQuery. That way, mounting of a new component will trigger a background refetch.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Satosh-J
Comment options

@TkDodo
Comment options

Answer selected by Satosh-J
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants