I want to build the game details pagefrom Ultimate React part2 course. My problem is at the game array wich comes empty.
api-client.ts I didn’t modify it with @tanstack and I kept the initial code with axios.
useGames.ts takes all the games from api and I use the Game interface from it to get the game details after slug in useGame.tx
Where I’m wrong because in GameDetailPage.tsx console.log(slug) is fine, but console.log(game) is empty and after a few tries it brings me the first 20 games.