Solid · Partial values

Partial arrays

An array item is in the partial value from the moment it opens, with only the keys received so far: an item has no initial value to start from. Code that renders an array while it streams must treat every key of an item as possibly missing.

Schema
z.object({
  nights: z.array(z.object({ night: z.string(), title: z.string() })),
})
Stream, chunk by chunk
Reply so far
{"nights":[
{"night":"2026-10-23","title":"The Tempest"},
Current value of nights
[{ night: '2026-10-23', title: 'The Tempest' }]
Output matches the expected value

Runs in this page on the installed package. The input and the expected output are defined by the example.