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

Raise an error when setting attributes on a reactive object #869

Open
maximlt opened this issue Oct 5, 2023 · 0 comments
Open

Raise an error when setting attributes on a reactive object #869

maximlt opened this issue Oct 5, 2023 · 0 comments
Labels
type-feature Feature request
Milestone

Comments

@maximlt
Copy link
Member

maximlt commented Oct 5, 2023

When experimenting with the reactive API, I've already done enough the mistake of setting value on the reactive object itself instead of using .rx.value to ask for this raising an error, e.g.:

namex = rx('bob')
namex.value = 'bill'  # wrong but now error, I wanted to type `namex.rx.value`

Actually, I can set any attribute on a reactive object, namex.foo = 'foo' doesn't raise an error.

@maximlt maximlt added the type-feature Feature request label Oct 5, 2023
@philippjfr philippjfr added this to the 2.1.0 milestone Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature Feature request
Projects
None yet
Development

No branches or pull requests

2 participants