Skip to content
Discussion options

You must be logged in to vote
const diff = useRef(0)
useQuery(key, () => {
  const before = Date.now()
  const result = await fetchItems()
  diff.current = Date.now() - before
  return result
})

Replies: 2 comments 6 replies

Comment options

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

Comment options

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

@marvelsrp
Comment options

@TkDodo
Comment options

@marvelsrp
Comment options

@TkDodo
Comment options

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