#mut in 2025. I'm trying to use mut for my selects instead of a bunch of different onChange functions
1 messages · Page 1 of 1 (latest)
<MyChild @childClickCount={{this.totalClicks}} @click-count-change={{fn (mut totalClicks))}} />
or
{{my-child childClickCount=totalClicks click-count-change=(fn (mut totalClicks))}}
The child Component would invoke the function with the new click value:
export default class MyChild extends Component {
click() {
this.get('click-count-change')(this.get('childClickCount') + 1);
}
}
I'm trying to follow this example, but how is click() called .. I dont see where its called because they don't have the component in the example
chatGPT said it's deprecated lmao
Guess thats why I was just seeing old examples.. :/ guess I'll make a service for a select
how is click called
I don't see that it is
chatGPT said its deprecated
yea, I wouldn't use mut, it's really confusing to teach and explain how it works
yeah I was surprised when it said that, but yeah thats what it said LOL
Making a select service that can handle all select related functionality. Thanks
@proven vessel is value="target.value" still a thing?
nope
That only ever worked with the {{action}} helper, which is super duper deprecated (possibly doesn't exist anymore?)
Correct, they were removed in v6
yeah I wondered why my old old project had it but the new one didn't..