You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When switching from one View.Grid to another, it seems to displace the content inside as it reuses the attributes such as the coldefs and rowdefs from the previous grid.
I believe this could be a similar issue to #622 which was fixed in PR #627. However, I am experiencing similar behaviour to this issue now.
I am using Fabulous 0.54.0 and Xamarin.Forms 4.6.0.726
When clicking Change from Page One to Page Two, the content of the View.Grid in the second view shows as
I understand that the reason for this is when updating the views, the views are being reused from the canReuseView function
I worked around this issue by adding a unique automationId to both grids, in order to get a false return in canReuseView for the canReuseAutomationId prevChild newChild condition:
I'm not quite satisfied with this workaround as the automationId should be used for automation testing. Is this expected behaviour from the view reuse logic? or could there be some missing checks/edge cases inside this canReuseView function causing views to be reused when they shouldn't be?
TIA
The text was updated successfully, but these errors were encountered:
When switching from one
View.Grid
to another, it seems to displace the content inside as it reuses the attributes such as thecoldefs
androwdefs
from the previous grid.I believe this could be a similar issue to #622 which was fixed in PR #627. However, I am experiencing similar behaviour to this issue now.
I am using Fabulous
0.54.0
and Xamarin.Forms4.6.0.726
Reproducing this issue with:
When clicking Change from Page One to Page Two, the content of the
View.Grid
in the second view shows asI understand that the reason for this is when updating the views, the views are being reused from the
canReuseView
functionI worked around this issue by adding a unique
automationId
to both grids, in order to get a false return incanReuseView
for thecanReuseAutomationId prevChild newChild
condition:I'm not quite satisfied with this workaround as the
automationId
should be used for automation testing. Is this expected behaviour from the view reuse logic? or could there be some missing checks/edge cases inside thiscanReuseView
function causing views to be reused when they shouldn't be?TIA
The text was updated successfully, but these errors were encountered: