Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] CollectionView ItemSource set from code resets to null during hot reload #11024

Open
PureWeen opened this issue Jun 11, 2020 · 1 comment
Labels

Comments

@PureWeen
Copy link
Contributor

PureWeen commented Jun 11, 2020

Description

If I have a collection view (with no binding involved) that I've set the ItemSource to in the constructor of a page. Then that ItemSource gets nulled out if the page is refreshed via hotreload

Steps to Reproduce

  1. Run the attached app
  2. If you click the button you'll see that strings will get added to the collection view Item Source
  3. change the text on the button inside hot reload
  4. The Collection View is now blank
  5. if you click the button no items get added because the ItemSource is now null

Expected Behavior

The ItemSource should retain the value that was set in the constructor after a hot reload happens

Actual Behavior

The ItemSource becomes null

Basic Information

  • Version with issue: 4.7
  • Tested on Android only so far

Reproduction Link

A47DogFood.zip

VS bug #1140380

@PureWeen PureWeen added t/bug 🐛 s/unverified New report that has yet to be verified labels Jun 11, 2020
@pauldipietro pauldipietro added this to New in Triage Jun 11, 2020
@hartez hartez added a/collectionview external-hotreload Non-Forms bugs that affect Hot Reload and removed s/unverified New report that has yet to be verified labels Jun 11, 2020
@hartez hartez removed this from New in Triage Jun 11, 2020
@hartez hartez added this to Backlog in CollectionView via automation Jun 11, 2020
@hartez hartez added the e/5 🕔 5 label Jun 11, 2020
@MaheshBalasubramanian
Copy link

I am facing the same issue for a while now

@samhouts samhouts added this to the 5.0.0 milestone Aug 13, 2020
@samhouts samhouts added this to To do in vNext+1 (5.0.0) Aug 13, 2020
@samhouts samhouts removed this from the 5.0.0 milestone Nov 2, 2020
@hartez hartez removed their assignment Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
CollectionView
  
Review Backlog
Development

No branches or pull requests

4 participants