Solid · Partial values
Partial strings
A string field is in the partial value from its first character and grows with every chunk. Text can be rendered while the model is still writing it: in the example answer grows under a card title that arrived complete in the first chunk.
z.object({
card: z.object({ kind: z.string(), title: z.string() }),
answer: z.string(),
sources: z.array(z.string()),
})Stream, chunk by chunk
{"card":{"kind":"answer","title":"Your seats"},{
card: { kind: 'answer', title: 'Your seats' },
answer: '',
sources: [],
}Runs in this page on the installed package. The input and the expected output are defined by the example.