-
Notifications
You must be signed in to change notification settings - Fork 140
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
feat: Remove react resize detector #2912
feat: Remove react resize detector #2912
Conversation
✅ Deploy Preview for carbon-for-ibm-products ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
packages/cloud-cognitive/src/global/js/hooks/useWindowScroll.js
Outdated
Show resolved
Hide resolved
packages/cloud-cognitive/src/global/js/hooks/useWindowResize.js
Outdated
Show resolved
Hide resolved
packages/cloud-cognitive/src/components/Tearsheet/TearsheetShell.js
Outdated
Show resolved
Hide resolved
packages/cloud-cognitive/src/components/PageHeader/PageHeader.js
Outdated
Show resolved
Hide resolved
Co-authored-by: Elysia <[email protected]>
Co-authored-by: Elysia <[email protected]>
✅ Deploy Preview for v11-carbon-for-ibm-products ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for v11-carbon-for-ibm-products ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏 looks great! And nice to have one less dependency.
@lee-chase Can this also be removed in the |
Contributes to #2744
V7 of ReactResizeObserver can result in the error shown in #2744 but the error appears to be a timing issue of some description.
The author fixed a similar looking issue in V8, but it persists in our storybook. In V9 there were more extensive changes that stopped our current usage working.
This PR removes ReactResizeObserver in favor of wrapping ResizeObserver (now standard) in a hook.
What did you change?
How did you test and verify your work?
NOTE: Storybook 6 reports the following error which would appear to be related this issue fixed only in Storybook 7. storybookjs/storybook#18716