hydrated icon indicating copy to clipboard operation
hydrated copied to clipboard

Support custom `persist` and `hydrate` callbacks for primitive types.

Open solid-yuriiprykhodko opened this issue 4 years ago • 0 comments

As pointed out by @solid-vovabeloded: Currently if we use HydratedSubject with a primitive type, custom persist and hydrate callbacks won't be invoked, or used at all: image

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.

solid-yuriiprykhodko avatar Aug 09 '21 12:08 solid-yuriiprykhodko