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
There's no way for the deserializeError method to know that the innerError object is actually an Error type. The unserialized value it came from could have been a plain object.
There could indeed be an option to have such a behavior, but it's not a safe default.
I think this could be turned into a generic "deep serialize error" feature, so that I could serialize and deserialize the output of Promise.allSettled for example.
When I use nested Error's they are serialized, but not deserialized, am I missing something?:
The text was updated successfully, but these errors were encountered: