From 4f5d5de2ae9a4084dc82912b56df386101137d11 Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Mon, 8 Apr 2024 11:27:19 +0200 Subject: [PATCH] Update packages/client-react-streaming/src/ManualDataTransport/ManualDataTransport.tsx --- .../src/ManualDataTransport/ManualDataTransport.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/client-react-streaming/src/ManualDataTransport/ManualDataTransport.tsx b/packages/client-react-streaming/src/ManualDataTransport/ManualDataTransport.tsx index d2d9eccc..8d8aaca2 100644 --- a/packages/client-react-streaming/src/ManualDataTransport/ManualDataTransport.tsx +++ b/packages/client-react-streaming/src/ManualDataTransport/ManualDataTransport.tsx @@ -16,6 +16,7 @@ export interface ManualDataTransportOptions { /** * Prepare data for injecting into the stream by converting it into a string that can be parsed as JavaScript by the browser. * Could e.g. be `SuperJSON.stringify` or `serialize-javascript`. + * The default implementation act like a JSON.stringify that preserves `undefined`, but not do much on top of that. */ stringifyForStream?: (value: any) => string; /**