Component is always being *replaced* (onWillStart is called) #1695
-
|
I'm doing fairly big app and I notice that The XML code is quite simple <templates>
<div t-name="Greeter" class="greeter" t-on-click="tick">
<Word word="state.word"/>
</div>
<div t-name="Word">
<t t-esc="props.word"/>
</div>
<t t-name="Root">
<Greeter />
</t>
</templates>And the function But in the logs I notice that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
hmm, from your example, i see this code: setup() {
onWillStart(() => {
console.debug("Word/onWillStart", this.props);
});
onWillUpdateProps((props) => {
console.debug("Word/onWillStart", props);
})
}if you look carefully, it looks like you are logging onWillStart in both case. I tried changing the log, and it look like it behave as I expect (logging onwillupdateprops) |
Beta Was this translation helpful? Give feedback.
hmm, from your example, i see this code:
if you look carefully, it looks like you are logging onWillStart in both case. I tried changing the log, and it look like it behave as I expect (logging onwillupdateprops)