[PR #446] [MERGED] feat(react): add React Refresh support #1322

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

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/446
Author: @remorses
Created: 12/27/2025
Status: Merged
Merged: 12/27/2025
Merged by: @msmps

Base: mainHead: add-react-refresh-support


📝 Commits (3)

  • 7572784 feat(react): add React Refresh support
  • 799b307 use React.version
  • 2274d91 Merge branch 'main' into add-react-refresh-support

📊 Changes

1 file changed (+7 additions, -0 deletions)

View changed files

📝 packages/react/src/reconciler/reconciler.ts (+7 -0)

📄 Description

Add injectIntoDevTools() call to enable React Refresh (hot reloading) for apps using @opentui/react.

This registers scheduleRefresh and setRefreshHandler functions that react-refresh/runtime uses to trigger component updates in-place without remounting.

Example usage in another reconciler: github.com/pmndrs/react-nil@25b9aaab94/src/index.tsx (L111)


🔄 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/446 **Author:** [@remorses](https://github.com/remorses) **Created:** 12/27/2025 **Status:** ✅ Merged **Merged:** 12/27/2025 **Merged by:** [@msmps](https://github.com/msmps) **Base:** `main` ← **Head:** `add-react-refresh-support` --- ### 📝 Commits (3) - [`7572784`](https://github.com/anomalyco/opentui/commit/7572784653a2d737ee7ceeef67816c9dc72de75a) feat(react): add React Refresh support - [`799b307`](https://github.com/anomalyco/opentui/commit/799b307a2cf70f28de6daf1ae3b7a9d648ecbe87) use React.version - [`2274d91`](https://github.com/anomalyco/opentui/commit/2274d91ed92381e14170d5ffe5c04dc7c8416a44) Merge branch 'main' into add-react-refresh-support ### 📊 Changes **1 file changed** (+7 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/react/src/reconciler/reconciler.ts` (+7 -0) </details> ### 📄 Description Add `injectIntoDevTools()` call to enable React Refresh (hot reloading) for apps using @opentui/react. This registers `scheduleRefresh` and `setRefreshHandler` functions that `react-refresh/runtime` uses to trigger component updates in-place without remounting. Example usage in another reconciler: https://github.com/pmndrs/react-nil/blob/25b9aaab940c9a66ac438e4e2040fabe94f78a88/src/index.tsx#L111 --- <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:38 +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#1322
No description provided.