Click in order · JavaScript and React course · Module 11: Data Fetching and APIs
Configuring useQuery in TanStack Query
Click the elements in order to configure useQuery with TanStack Query:
Items to click
- queryFn: () => fetch(url).then(r => r.json()),
- staleTime: 60000 })
- useQuery({
- queryKey: ['planets'],
- const { data, isLoading } =
You can check the correct answer by solving this task in the CodeWorlds game.