Support custom persist
and hydrate
callbacks for primitive types.
#24
Labels
enhancement
New feature or request
persist
and hydrate
callbacks for primitive types.
#24
As pointed out by @solid-vovabeloded:
![image](https://user-images.githubusercontent.com/40931732/128707506-11a251a4-819f-4036-984d-a6cc67656dc2.png)
Currently if we use
HydratedSubject
with a primitive type, custompersist
andhydrate
callbacks won't be invoked, or used at all:The idea is to change the check order in the above method to use the custom callbacks, if they were provided, and then fall back to standard handling.
The text was updated successfully, but these errors were encountered: