Stencil: All changes not available in componentWillUpdate

Created on 17 Apr 2020  路  4Comments  路  Source: ionic-team/stencil

Stencil version:

 @stencil/[email protected]

I'm submitting a:

[ x ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior:
If multiple props are changed on a component, only one of the props have changed to the new value when componentWillUpdate is called, making calculations based on all the props impossible

Expected behavior:
When componentWillUpdate is called, all props on the component should have the new values

Steps to reproduce:

Working example available in this repo
https://github.com/jgroth/stencil-bug

triage

Most helpful comment

All 4 comments

I can confirm this bug. To be honest, I was quite surprised to see this in version 1.x 馃槴

@manucorporat Great to hear! Thanks a lot!

It should be fixed in 8302fed

鈥hich is in v1.13.0-3, so should be in release 1.13.0 once that's available. For anyone who comes after me, so they don't also have to go looking 馃槉

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MrMcGibblets picture MrMcGibblets  路  3Comments

MatanYadaev picture MatanYadaev  路  3Comments

noahlaux picture noahlaux  路  3Comments

anthonylebrun picture anthonylebrun  路  3Comments

bekliev picture bekliev  路  3Comments