mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 13:06:00 +03:00
[PR #7] refactor(renderer): Separate render loop from single frame rendering #215
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#215
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/7
Author: @SyedaAnshrahGillani
Created: 7/31/2025
Status: 🔄 Open
Base:
main← Head:feature/animation-loop-refactor📝 Commits (2)
f608455refactor: Use for...of loop for animation frame requestsf82c5e2refactor(renderer): separate render loop from single frame rendering📊 Changes
1 file changed (+30 additions, -24 deletions)
View changed files
📝
src/index.ts(+30 -24)📄 Description
This pull request refactors the CliRenderer to improve code clarity and
maintainability.
The core rendering logic has been extracted from the loop() method into a
new private method called _renderFrame().
This change allows renderOnce() to directly call the rendering logic without
invoking the entire loop, which is more efficient and semantically correct.
The loop() method now focuses on its primary responsibility: managing the
rendering loop and scheduling frames.
This refactoring improves the overall structure of the CliRenderer and makes
the code easier to understand and maintain. No functional changes are
introduced.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.