I'm rather surprised the Code Sample (around 10:00 in the video) works; you have a line of code that directly assigns to this.selectedOption, but this is an @api property and those are immutable from within the component itself. We have historically had to have a "private" property that is then managed by an @api annotated getter/setter function pair to allow this. Did LWC behaviour change in a more recent API version?
This is a good video. I recommend this. Thank You!...
Super helpful! Thank you!
I'm rather surprised the Code Sample (around 10:00 in the video) works; you have a line of code that directly assigns to this.selectedOption, but this is an @api property and those are immutable from within the component itself. We have historically had to have a "private" property that is then managed by an @api annotated getter/setter function pair to allow this. Did LWC behaviour change in a more recent API version?