In PokeBuilder we use axios almost everywhere either to get information from the PokeAPI or the backend.
It would be nice if we could remove duplicate code by making a useAxios (or should we call it useFetch?) hook to achieve this. This would also mean that we can use cleanups effectively to stop memory leak warnings being printed on the console.
In PokeBuilder we use axios almost everywhere either to get information from the PokeAPI or the backend.
It would be nice if we could remove duplicate code by making a
useAxios
(or should we call ituseFetch
?) hook to achieve this. This would also mean that we can use cleanups effectively to stop memory leak warnings being printed on the console.Specifications
This YouTube video looks promising...