All quizzes
Free quiz · 50 questions in the bank

React-query quiz

Test your React-query knowledge with a free interactive quiz — 50 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What is the role of `queryKey`?

Questions in this quiz
  1. What is the role of `queryKey`?
  2. What does `invalidateQueries(["users"])` do?
  3. Which hook fetches data?
  4. How can a `queryFn` access the query key?
  5. After a successful `useMutation`, how do you keep dependent queries up to date?
  6. What does the React Query Devtools panel show?
  7. What problem does TanStack Query (React Query) primarily solve?
  8. A `useQuery` returns `error`. When is it populated?
  9. How do you set a global stale time of 60 seconds for every query?
  10. How does React Query handle multiple components calling `useQuery` with the same key in the same render pass?
  11. `refetchInterval: 30_000` does what?
  12. When does React Query refetch by default?
Gaps to close?
Read the curated React-query notes — core concepts, patterns, interview prep.
React-query notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web