These are chat archives for ractivejs/ractive
twoway: false(except in component attributes) but yes, it sounds like a malfunctioning
twoway="false"is only meaningful (and applicable) on native components (ie. inputs etc.). If
twoway="false"would disable data setting completely, how could we send data from a component to its root instance?
which it does and the strange thing is that it does only for one time
I know, it looks strange at first but actually it's not. At the first click, it sets
"Hello" and the readonly input displays that because this is a change from outside. that's normal, right?
@this.set('mytest', 'Hello')should have no effect whatsoever on the parent instance
it shouldn't update at all
say it isn't updating. How do we update
test within the component? there should be a way to do this?
@this.set('mytest', 'Hello')? would it update only a copy of
set('mytest', value)? should I create a copy of
mytestand update it?
twoway="false"has an effect on the component (or its instance)
Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "mytitle"