react-spectrum icon indicating copy to clipboard operation
react-spectrum copied to clipboard

Collection is not built when `React.Activity` is set to `visible` the first time

Open ali-idrizi opened this issue 1 month ago โ€ข 12 comments

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

ali-idrizi avatar Nov 12 '25 08:11 ali-idrizi