Eureka-Shoulders/fetchx

Fetch answer only accept array

Closed this issue · 0 comments

throw new Error('Invalid response. Data should be an array.');

If I make a request to an API that doesn't directly return an array, but an object with data other than the list, the application throws an error

Example: https://pokeapi.co/api/v2/pokemon