Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support fragments in collections #6430

Merged
merged 4 commits into from
Aug 5, 2024
Merged

Conversation

solimant
Copy link
Collaborator

Closes

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

Copy link
Member

@snowystinger snowystinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, we'll need tests for this.
Something to look out for is caching of entire children of the fragment when they would each be individually cached if not in a fragment.
Another is making sure that mixed structures like these work

<Parent>
  <Item></Item>
  <>
    <Item></Item>
  </>
</Parent>

<Parent>
  <>
    <Item></Item>
    <Item></Item>
  </>
</Parent>

@solimant solimant force-pushed the support_fragments branch 2 times, most recently from 7731fa0 to 1bfbc8b Compare July 13, 2024 04:07
@solimant
Copy link
Collaborator Author

@snowystinger - Rob, thank you for the review, and sorry for the delay in addressing the feedback. I've included tests, and revised the implementation a little which I think should address the use of the cache. Happy to address any further feedback.

@snowystinger
Copy link
Member

No worries, this looks reasonable. We'll get someone else to review it after our next release. Hopefully next week. Thanks @solimant !

Copy link
Member

@reidbarber reidbarber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@reidbarber reidbarber merged commit 455cbf4 into adobe:main Aug 5, 2024
29 checks passed
reidbarber added a commit that referenced this pull request Aug 21, 2024
Co-authored-by: Reid Barber <reid@reidbarber.com>
Co-authored-by: Robert Snow <rsnow@adobe.com>
reidbarber added a commit that referenced this pull request Aug 21, 2024
* Update Picker placeholder to be shorter (#6796)

* feat: Support fragments in collections (#6430)

Co-authored-by: Reid Barber <reid@reidbarber.com>
Co-authored-by: Robert Snow <rsnow@adobe.com>

* Exposing prop disabledBehavior to TableView (#6832)

* fix/bug useTablist #5996 (#6023)

* fix/bug useTabist #5996 and added tests

* Extract `ToggleStateProps` type to use only what is needed in `useToggleState` (#3836)

* Extract `ToggleStateProps` type to use only what is needed in `useToggleState`

---------

Co-authored-by: Robert Snow <rsnow@adobe.com>
Co-authored-by: solimant <solimant@users.noreply.github.com>
Co-authored-by: Kyle Taborski <ktabors@yahoo.com>
Co-authored-by: Medhashis Maiti <129734281+mdhmaiti@users.noreply.github.com>
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants