param icon indicating copy to clipboard operation
param copied to clipboard

Raise an error when setting attributes on a reactive object

Open maximlt opened this issue 2 years ago • 0 comments

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 avatar Oct 05 '23 16:10 maximlt