This repository was archived by the owner on Jul 22, 2025. It is now read-only.
DEV: Streaming animation API for components #1224
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🔍 Overview
This takes the logic used in summarization/discoveries for streaming and consolidates it into a single helper lib for smooth streaming. It introduces a new lib:
SmoothStreamerthat can be used by components for smooth streaming text from message bus updates. Additionally, the PR makes use of that new lib in the AI post menu helper.With this PR the
SmoothStreamerwill now be used in all component based implementations of streaming to the client:➕ Usage
To make use of the new
SmoothStreamerclass, add it to your component like so:The constructor for the streamer expects a getter/setter for the tracked property you use in your component for showcasing the result. You can then call the smooth streamer in your MessageBus update function like so:
📹 Screen captures
Screen.Recording.2025-03-26.at.16.31.07.mov