Skip to content

Conversation

@smallB007
Copy link

…ditor

@vipmax
Copy link
Owner

vipmax commented Jan 5, 2026

Thanks for PR, Artie.
Few months ago I tried ratatui = "=0.30.0-alpha.0" version and code did not compiled.
I think you the same had errors too, and fixed with WidgetRef, right?
But now we have 0.30.0 and it compiles fine and I don't get why do we need WidgetRef.

@smallB007
Copy link
Author

Hi there,
Apparently this is the "preferred" way of doing things now in 0.30.
impl WidgetRef for &Editor

@vipmax
Copy link
Owner

vipmax commented Jan 6, 2026

What's the reason for this? Can you explain?
It requires unstable-widget-ref feature, I don't like unstable features.
impl Widget for &Editor is just fine

@smallB007
Copy link
Author

In fairness, I've tried to look at the changes that were added to .30 and couldn't find any reason thad pushed me towards this "change". I may simply misunderstood the intentions behind WidgetRef trait.

@smallB007 smallB007 closed this Jan 7, 2026
@smallB007 smallB007 deleted the ratatui_v.0.30.0 branch January 7, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants