mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[PR #670] [MERGED] fix(solid): return empty string sentinel from cleanChildren when no replacement #702
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#702
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/670
Author: @Hona
Created: 2/11/2026
Status: ✅ Merged
Merged: 2/11/2026
Merged by: @Adictya
Base:
main← Head:fix/cleanchildren-undefined-return📝 Commits (1)
da1caf6fix(solid): return empty string sentinel from cleanChildren when no replacement📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
packages/solid/src/renderer/universal.js(+1 -1)📄 Description
Summary
cleanChildrenin the forked universal renderer to return""instead ofundefinedwhen called without a replacement, matching solid-js's upstream behaviorProblem
When
cleanChildrenis called without amarkerorreplacement(e.g. whenShow/Switchhides content), the no-marker early-return path returnsreplacement— which isundefined. The solid-js upstream returns"".This
undefinedpropagates as thecurrentvalue throughinsertExpression's reactive chain, eventually corrupting downstream memo reads and causing crashes like:Introduced in #169 when the universal renderer was forked from solid-js.
Fix
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.