Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

State? #40

Open
rscarson opened this issue Oct 3, 2024 · 1 comment
Open

State? #40

rscarson opened this issue Oct 3, 2024 · 1 comment

Comments

@rscarson
Copy link

rscarson commented Oct 3, 2024

The state parameter of build_chart does not appear to do anything (state always has the value of State::default) - and none of the example show it's use (_state in every single example)

Does that parameter work?

@Joylei
Copy link
Owner

Joylei commented Oct 5, 2024

The state parameter of build_chart does not appear to do anything (state always has the value of State::default) - and none of the example show it's use (_state in every single example)

Does that parameter work?

It should work, but its usage is limited.
The widget tree will have the ownership of the state, you cannot update the state directly, unless you are handling UI events.

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

No branches or pull requests

2 participants