Saturday, April 17, 2021
1 change · master
Miscellaneous changes
Before this commit, `WidgetWrapper` tried to redirect the call to `updateState` on its wrapped component but it can happen that the wrapper is not mounted yet and thus calling a function on its wrapped component will crash. This commit changes the implementation of `WidgetWrapper.updateState` to redirect the call to `this.update` which will update the props of the wrapped component and not directly its state. task 2504521 Forward-Port-Of: odoo/odoo#69294
Original PR description
Before this commit, `WidgetWrapper` tried to redirect the call to `updateState` on its wrapped component but it can happen that the wrapper is not mounted yet and thus calling a function on its wrapped component will crash. This commit changes the implementation of `WidgetWrapper.updateState` to redirect the call to `this.update` which will update the props of the wrapped component and not directly its state. task 2504521 Forward-Port-Of: odoo/odoo#69294