useLazyFetch errors not resolving
I am using the following code on my page (simplified) to fetch a list of items):
The problem is that currently, as intended, my API is returning a
How do I make it return an error and maybe change? I'd want
The problem is that currently, as intended, my API is returning a
401 Unauthorized, and at times could return other errors, but useLazyFetch doesn't catch the errors. It just sits there forever spinning with no hint of error unless you check the Network tab in dev tools.How do I make it return an error and maybe change? I'd want
pending to be false and then maybe an ErrorState or something? Or maybe just use the default Nuxt error?