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
When nesting createStreamableUI values inside another createStreamableUI, the final result disappears in production builds. The issue does not surface in local development.
Here are a couple videos. The first video in a dev build shows that the values do not disappear after marking ui.done(). The second video shows the values disappearing after ui.done() is called in a production build.
In dev, the UI does not disappear after ui.done():
2024-05-10.16-27-27.mp4
In a production build, the UI disappears after ui.done() is called:
Description
When nesting createStreamableUI values inside another createStreamableUI, the final result disappears in production builds. The issue does not surface in local development.
Here is a reproducible example which works in dev but not after running
pnpm build: https://github.com/amcclure-super/ai-streamableUIHere are a couple videos. The first video in a dev build shows that the values do not disappear after marking ui.done(). The second video shows the values disappearing after ui.done() is called in a production build.
In dev, the UI does not disappear after ui.done():
2024-05-10.16-27-27.mp4
In a production build, the UI disappears after ui.done() is called:
2024-05-10.16-28-35.mp4
Code example
Full repo: https://github.com/amcclure-super/ai-streamableUI
Relevant code: