fix(ivy): mark views dirty by default when events fire (#28474)
In Ivy, we support a new manual mode that allows for stricter control over change detection in OnPush components. Specifically, in this mode, events do not automatically mark OnPush views as dirty. Only changed inputs and manual calls to `markDirty()` actually mark a view dirty. However, this mode cannot be the default for OnPush components if we want to be backwards compatible with View Engine. This commit re-adds the legacy logic for OnPush components where events always mark views dirty and makes it the default behavior. Note: It is still TODO to add a public API for manual change detection. PR Close #28474
This commit is contained in:

committed by
Matias Niemelä

parent
8930f60a4b
commit
5c4d95541e
@ -1239,6 +1239,6 @@
|
||||
"name": "walkUpViews"
|
||||
},
|
||||
{
|
||||
"name": "wrapListenerWithPreventDefault"
|
||||
"name": "wrapListener"
|
||||
}
|
||||
]
|
Reference in New Issue
Block a user