+

Use Array Output Mode with the AI SDK and useObject to stream only complete array element as they become available.

This results in a more stable UI with no layout shifts, improving the overall user experience.

View Source CodeDeploy with Vercel