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

Fix useResizeObserver loop limit exceeded warning

Open snowystinger opened this issue 2 years ago โ€ข 3 comments

Closes https://github.com/adobe/react-spectrum/issues/1924

Uses solution from https://blog.elantha.com/resizeobserver-loop-limit-exceeded/ Story added is based on the code from the blog and it reproduces the issue. You can see this for yourself once this PR builds.

Someone pinged on the issue again and our project's complain about this periodically. I had a solution laying around so put it into a PR. This isn't a priority for our next release, but is a general nice to have.

โœ… Pull Request Checklist:

  • [x] 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:

Make sure ActionGroups still collapse as expected. Shouldn't see any warnings about loop limit exceeded. Other components using it that should be verified in testing: ActionGroup ScrollView SearchAutocomplete Breadcrumbs ButtonGroup CardBase ColorWheel ComboBox DatePicker Picker SearchWithin Tabs

๐Ÿงข Your Project:

snowystinger avatar Feb 26 '22 00:02 snowystinger

Build successful! ๐ŸŽ‰

adobe-bot avatar Feb 26 '22 00:02 adobe-bot

Build successful! ๐ŸŽ‰

adobe-bot avatar Mar 11 '22 18:03 adobe-bot

Hi anyone knows when this pr will be merge please ?

delphineli avatar Dec 19 '22 14:12 delphineli

## API Changes

unknown top level export { type: 'identifier', name: 'Column' } unknown top level export { type: 'identifier', name: 'Column' } unknown type { type: 'link' } unknown type { type: 'link' } unknown type { type: 'link' } unknown type { type: 'link' } unknown type { type: 'link' } unknown type { type: 'link' }

rspbot avatar Mar 11 '23 00:03 rspbot

@snowystinger this is great, thank you !

evargast avatar Mar 14 '23 02:03 evargast