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
We're updating the content of a listview based on a button click. The initial load is fine but the second time we set 'items' we get 'TypeError: Cannot read property 'setItems' of undefined'.
This looks to be caused by a dependency on 'selection' in ListView.componentDidUpdate. Adding a 'selection' property resolves the issue.
Steps to Reproduce
Create a list view without 'selection'
Set items on mount
Set items for a second time
An error is thrown
The text was updated successfully, but these errors were encountered:
Category
[x] Bug
[x] Question
Version
[ 1.2.5 ]
Expected / Desired Behavior / Question
Selection prop is not required.
Observed Behaviour
We're updating the content of a listview based on a button click. The initial load is fine but the second time we set 'items' we get 'TypeError: Cannot read property 'setItems' of undefined'.
This looks to be caused by a dependency on 'selection' in ListView.componentDidUpdate. Adding a 'selection' property resolves the issue.
Steps to Reproduce
Create a list view without 'selection'
Set items on mount
Set items for a second time
An error is thrown
The text was updated successfully, but these errors were encountered: