You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm normalizing the error code from the response with a message and I need to access this error inside the promise then, to do some more things, more in some cases the error from useFetch destructuring was undefined. I think its more a question than a bug maybe.
To Reproduce
Steps to reproduce the behavior:
2. Click on submit button
3. See console.log from error variable on line 37, some cases it's undefined, the one on line 41 always comes with the error value
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm normalizing the error code from the response with a message and I need to access this error inside the promise then, to do some more things, more in some cases the error from useFetch destructuring was undefined. I think its more a question than a bug maybe.
https://codesandbox.io/s/silly-napier-wxs53?file=/src/App.js
To Reproduce
Steps to reproduce the behavior:
2. Click on submit button
3. See console.log from error variable on line 37, some cases it's undefined, the one on line 41 always comes with the error value
The text was updated successfully, but these errors were encountered: