This is a work-in-progress. This PR integrates seroval's new streaming serializer to be utilized by SolidJS as a whole. With the new serializer, SolidJS will be able to:
Dedupe references in both nested objects and across resources
Allows SolidJS to serialize Promise and ReadableStream instances
Allow nested Promise instances to be naturally deferred (only top-level Promise instances can be blocked). These instances are then serialized and streamed later on.
Part of the HydrationScript would be delegated to seroval as seroval has its own "hydration" script.
This is a work-in-progress. This PR integrates seroval's new streaming serializer to be utilized by SolidJS as a whole. With the new serializer, SolidJS will be able to:
Promise
andReadableStream
instancesPromise
instances to be naturally deferred (only top-levelPromise
instances can be blocked). These instances are then serialized and streamed later on.