Closed craxal closed 11 hours ago
I suspect this is due to a state desyncing bug in the AsyncLoadingHook
. A reload clears the selection array then requests a reload. The reload request clears out the internal data, which is where the empty items array is coming from. This is expected. However, the actual item clear probably happens on a different update cycle. The hook currently uses refs to store copies of items from the async data source. Changes to refs don't trigger a render, which may be why some things are off.
From what I can tell, the error is not surfaced to users, so it's not disruptive, and things correct themselves once the list of items is refreshed. Still something that makes me nervous, so we should look into this.
For tables:
For queues:
In both cases, the same error occurs. It is thrown when attempting to map a nonempty
selectedItemIndices
array to items from an emptyitems
array.