Getting "Uncaught Promise {<pending>}" console errors but everything works... #131
Replies: 1 comment 2 replies
-
Great to hear that! Can you create a minimal reproduction of the console error with codesandbox? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First off, if you are a maintainer of this library, it's amazing! Completely what I've been looking for, for a long time now.
I've started to replace a similar proxy based state management library in my React project with this one. In my app I'm making a request using Axios and returning a promise and setting it on state using Valatio. I'm using React suspense and everything works great but I keep getting console errors that say
Uncaught Promise {<pending>}
. I can see where this is getting emitted in Valatio (lines 335-340) but I'm a bit unsure what I'm doing wrong. I don't necessarily need a fix as much as just maybe an explanation to why the error is getting thrown if someone knows. Thank you in advance!Beta Was this translation helpful? Give feedback.
All reactions