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
Trying to add some custom types for functions but devalue seems to throw before calling the replacer. I understand that serializing functions is a non-goal, but I'm not sure it makes sense to prevent the following use-cases to be implemented with custom types:
Reviving a pure function using a custom type. There is no transferring of the function, we can just reference it on both sides of serialization:
Trying to add some custom types for functions but
devalue
seems to throw before calling the replacer. I understand that serializing functions is a non-goal, but I'm not sure it makes sense to prevent the following use-cases to be implemented with custom types:Reviving a pure function using a custom type. There is no transferring of the function, we can just reference it on both sides of serialization:
Ignoring non-serializable. While transferring user generated values, trying to do a best effort while communicating failures:
both of these result in
Would you consider relaxing the acceptable values that can be serialized with custom types?
The text was updated successfully, but these errors were encountered: