Hey! I’ve been using Axios con Next 14 for a while, and I’d recommend creating a custom instance. It’s way cleaner and more reusable.
For error handling, I’d suggest using interceptors. They let you catch errors globally and handle them however you want.
Also, check out `react-query` for caching. It’s super easy to set up and works great with Next.js.
For error handling, I’d suggest using interceptors. They let you catch errors globally and handle them however you want.
Also, check out `react-query` for caching. It’s super easy to set up and works great with Next.js.
