Utilizing NextJS, React query (with axios and suspense mode), I am attempting to handle an intentional 404 error from my API. Although I successfully caught it in my error.js file, the same error still shows up in the console as "uncaught." https://i.stack.imgur.com/J0yCx.png
I have also made attempts to log and catch this error in my component where I use the react query, but despite being able to log it, it continues to display as "Uncaught" in the console.
Here is my Home component: https://i.stack.imgur.com/I0Aq0.png
My route: https://i.stack.imgur.com/RAm3E.png
And my error.js file: https://i.stack.imgur.com/uLdKc.png
Any suggestions on how to effectively catch this error?