Skip to contentOpen History to see the last commit
pokemon.ts
10 lines258 Bytes
1import { queryOptions } from '@tanstack/react-query' 3export const pokemonOptions = queryOptions({ 6 const response = await fetch('https://pokeapi.co/api/v2/pokemon/25')