How to update property of object inside Stimulus-Controller?

If you look in the handbook under values → Types there is an list of how it handles encoding and decoding depending on the type: Stimulus Reference

You can see that the setter uses JSON.stringify so you will likely need to update the entire object for it to work as intended.

1 Like