mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 04:55:58 +03:00
[GH-ISSUE #221] react: Clearing certain props causes the reconciler to throw #824
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#824
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?
Originally created by @CMTegner on GitHub (Oct 21, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/221
When using @opentui/react, clearing (i.e. setting to
null) certain props after initial render causes the reconciler to throw. I know for certain this happens forflexDirectionandjustifyContent, but the problem may be more widespread.To reproduce, run the following in a shell:
This seems to be happening because the appropriate parser functions (
parseJustify,parseFlexDirection, etc) expect the value to be non-null, and the setters don't guard for this case.@kommander commented on GitHub (Oct 23, 2025):
This was auto-closed by the PR mentioning this. Let me know if something is missing.