-
Hi, everyone. So, I just experienced something running MST in prod mode. Basically I was fetching the API information and then casting it to my observable, something like:
In dev mode, the error is caught in runtime, but in prod it never reaches the catch statement. Is there a recommended way to handle these scenarios? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi! You could use typecheck() helper function for this. |
Beta Was this translation helpful? Give feedback.
Hi! You could use typecheck() helper function for this.
Alternatively, documentation states that you can set
process.env.ENABLE_TYPE_CHECK = "true"
if you want to enable type checking in any environment. A quick look into the code proves this statement.