[PR #454] [MERGED] fix: handle flushSync rename in react-reconciler 0.32.0 #1328

Closed
opened 2026-03-14 09:30:54 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/454
Author: @remorses
Created: 12/29/2025
Status: Merged
Merged: 1/1/2026
Merged by: @msmps

Base: mainHead: fix-flushsync-api


📝 Commits (7)

  • 92ad13c fix: handle flushSync rename in react-reconciler 0.32.0
  • d524f99 refactor: remove as any casts and add flushSync example
  • 24100ce fix: always show key help in flush-sync example
  • 8f32f7d refactor: simplify flush-sync example
  • 4d84e59 refactor: show batching difference in flush-sync example
  • bbd7b88 style: fix prettier formatting
  • 5382b9a Merge branch 'main' into fix-flushsync-api

📊 Changes

2 files changed (+66 additions, -1 deletions)

View changed files

packages/react/examples/flush-sync.tsx (+61 -0)
📝 packages/react/src/reconciler/renderer.ts (+5 -1)

📄 Description

flushSync was renamed to flushSyncFromReconciler in react-reconciler 0.32.0.

This fix uses nullish coalescing to check for the new name first, falling back to the old name for backwards compatibility.

Ref: https://github.com/facebook/react/issues/35424


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opentui/pull/454 **Author:** [@remorses](https://github.com/remorses) **Created:** 12/29/2025 **Status:** ✅ Merged **Merged:** 1/1/2026 **Merged by:** [@msmps](https://github.com/msmps) **Base:** `main` ← **Head:** `fix-flushsync-api` --- ### 📝 Commits (7) - [`92ad13c`](https://github.com/anomalyco/opentui/commit/92ad13cde52603aa462529e4dd7349e9159d2ec4) fix: handle flushSync rename in react-reconciler 0.32.0 - [`d524f99`](https://github.com/anomalyco/opentui/commit/d524f99cc4dd53968c9205487d0e6ff1b4e77f61) refactor: remove as any casts and add flushSync example - [`24100ce`](https://github.com/anomalyco/opentui/commit/24100ceac2993b68719af2ff7508318d5cbd1a86) fix: always show key help in flush-sync example - [`8f32f7d`](https://github.com/anomalyco/opentui/commit/8f32f7dbe7c6fbad4b4e145ba41fea00b7aa4544) refactor: simplify flush-sync example - [`4d84e59`](https://github.com/anomalyco/opentui/commit/4d84e594c50d5d7ef09a6e87806ce9c7bfbce772) refactor: show batching difference in flush-sync example - [`bbd7b88`](https://github.com/anomalyco/opentui/commit/bbd7b887889ad1b084ee1faa1475170a6da67ae6) style: fix prettier formatting - [`5382b9a`](https://github.com/anomalyco/opentui/commit/5382b9ad8ebfefca6be34c4ac2165c36e7714570) Merge branch 'main' into fix-flushsync-api ### 📊 Changes **2 files changed** (+66 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `packages/react/examples/flush-sync.tsx` (+61 -0) 📝 `packages/react/src/reconciler/renderer.ts` (+5 -1) </details> ### 📄 Description `flushSync` was renamed to `flushSyncFromReconciler` in react-reconciler 0.32.0. This fix uses nullish coalescing to check for the new name first, falling back to the old name for backwards compatibility. Ref: https://github.com/facebook/react/issues/35424 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-14 09:30:54 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#1328
No description provided.