mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 13:06:00 +03:00
[GH-ISSUE #131] Changing variables not re-rendering #30
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#30
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 @k2on on GitHub (Sep 3, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/131
Originally assigned to: @msmps on GitHub.
I am trying to use Zero Sync Engine like this:
This code works using ink, but not with OpenTUI.
However, this does work with OpenTUI when I add some other state, such as this
Any idea on why messages wouldn't rerender by itself?
Thanks for the help,
Max
@msmps commented on GitHub (Sep 3, 2025):
I will look into this! It looks like the
useQuery(z.query.message);hook is not triggering a re-render in this specific scenario which is odd 🤔A quick (although not ideal) workaround would be to hand over control of the rendering loop to opentui by setting the
liveprop on the parent<box>@k2on commented on GitHub (Sep 3, 2025):
Ok, thanks for looking into this. I would love to switch over from Ink so getting this to work with zero would be really huge. Thanks for the help.
@remorses commented on GitHub (Sep 3, 2025):
Probably an issue with useSyncExternalStore
github.com/rocicorp/mono@cbdfefe899/packages/zero-react/src/use-query.tsx (L82)@msmps commented on GitHub (Sep 3, 2025):
this is the outcome i had landed on (for now) will investigate in the coming days