react-spectrum
react-spectrum copied to clipboard
Collection is not built when `React.Activity` is set to `visible` the first time
Provide a general summary of the issue here
I was trying out the new <React.Activity> and came across an issue with collections not rendering anything the first time the mode is set to visible from hidden. Here's a screen recording of the issue:
https://github.com/user-attachments/assets/425a99df-dff3-41fe-8108-ecc6d57a2f7d
Also tried with @react-aria/collections version 3.0.0-nightly-2485ffa1b-251111, and the issue is present.
๐ค Expected Behavior?
The collection should be correctly built when the mode is set to visible.
๐ฏ Current Behavior
The first time the mode is set to visible nothing is rendered and the collection.size is 0.
๐ Possible Solution
No response
๐ฆ Context
No response
๐ฅ๏ธ Steps to Reproduce
Here's a super minimal reproduction https://codesandbox.io/p/devbox/zen-platform-tjfns7
Version
3.0.0
What browsers are you seeing the problem on?
Firefox, Chrome
If other, please specify.
No response
What operating system are you using?
N/A
๐งข Your Company/Team
No response
๐ท Tracking Issue
No response