You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`List (Array.map turn_element_into_payload children |>Array.to_list)
284
+
`List (Array.map (turn_element_into_payload~context) children |>Array.to_list)
285
285
(* TODO: Get the stack info from component as well *)
286
286
|Upper_case_component (name, component) -> (
287
287
match component ()with
@@ -294,13 +294,13 @@ module Model = struct
294
294
Root is a special case: https://github.com/facebook/react/blob/f3a803617ec4ba9d14bf5205ffece28ed1496a1d/packages/react-server/src/ReactFlightServer.js#L756-L766
295
295
*)
296
296
if debug then push_debug_info ~context~to_chunk~env~index:0~ownerName:name else();
297
-
turn_element_into_payload element)
297
+
turn_element_into_payload ~contextelement)
298
298
else
299
299
(* If it's not the root React push the element to the stream and return the reference value *)
300
300
let element_index =
301
301
Stream.push ~context (funindex ->
302
302
if debug then push_debug_info ~context~to_chunk~env~index~ownerName:name else();
303
-
let payload = turn_element_into_payload element in
303
+
let payload = turn_element_into_payload ~contextelement in
304
304
to_chunk (Value payload) index)
305
305
in
306
306
`String (ref_value element_index)
@@ -318,12 +318,12 @@ module Model = struct
318
318
let error = make_error ~message~stack~digest:""in
319
319
let index =Stream.push ~context (to_chunk (Error (env, error))) in
320
320
`String (lazy_value index)
321
-
|Returnelement -> turn_element_into_payload element
0 commit comments