mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[PR #56] [MERGED] fix: convert MapIterator to array for frameRequests.forEach #257
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#257
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/56
Author: @hanbao-dev
Created: 8/23/2025
Status: ✅ Merged
Merged: 8/23/2025
Merged by: @kommander
Base:
main← Head:main📝 Commits (1)
eb161fafix: convert MapIterator to array for frameRequests.forEach📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
packages/core/src/renderer.ts(+1 -1)📄 Description
The animationRequest.values() method returns a MapIterator which doesn't have a forEach method, causing "frameRequests.forEach is not a function" runtime error when requestAnimationFrame callbacks are processed. Wrap with Array.from() to convert the iterator to an array before calling forEach in the render loop. Fixes animation frame callback processing in Node.js environments.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.