Effect
Version 4.0.0-beta.5
Patch Changes
-
#1317
f6e133eThanks @tim-smart! - support tag unions in Effect.catchTag/Reason -
#1314
e3893ccThanks @zeyuri! - FixAtom.serializableencode/decode for wire transfer.Use
Schema.toCodecJsoninstead ofSchema.encodeSync/Schema.decodeSyncdirectly, so that encoded values are plain JSON objects that survive serialization roundtrips (JSON, seroval, etc.). Previously,AsyncResult.Schemaencode produced instances with custom prototypes that were lost after wire transfer, causing decode to fail with “Expected AsyncResult” errors during SSR hydration. -
#1314
e3893ccThanks @zeyuri! - Port ReactHydration to effect-smol.Add
Hydrationmodule toeffect/unstable/reactivitywithdehydrate,hydrate, andtoValuesfor SSR state serialization. AddHydrationBoundaryReact component to@effect/atom-reactwith two-phase hydration (new atoms in render, existing atoms after commit).