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

feat: do not allow reactive to be used as boolean #846

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maartenbreddels
Copy link
Contributor

No description provided.

reactive_var = solara.reactive(0)
...
if reactive_var: # this is often a mistake
if reactive_var.value: # this is the correct way to check the value
@maartenbreddels maartenbreddels added this to the Solara 2.0 milestone Nov 1, 2024
@maartenbreddels maartenbreddels changed the title Feat disable boolean use of reactives feat: do not allow reactive to be used as boolean Nov 1, 2024
@maartenbreddels
Copy link
Contributor Author

@Jhsmit i guess you would like this

@Jhsmit
Copy link
Contributor

Jhsmit commented Nov 4, 2024

see also #782

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