Skip to content

Conversation

@hamed-musallam
Copy link
Member

Replace react-d3-utils ResizeObserver with manual implementation using useLayoutEffect to fix incorrect width calculation when component is rendered inside modals.

The previous implementation measured width before the modal was fully rendered

Replace react-d3-utils ResizeObserver with manual implementation
using useLayoutEffect to fix incorrect `width` calculation when
component is rendered inside modals.

The previous implementation measured `width` before the modal was
fully rendered
@cloudflare-workers-and-pages
Copy link

Deploying nmrium with  Cloudflare Pages  Cloudflare Pages

Latest commit: 178b1d9
Status: ✅  Deploy successful!
Preview URL: https://d09bcff4.nmrium.pages.dev
Branch Preview URL: https://refactor-next-prev-component.nmrium.pages.dev

View logs

@hamed-musallam hamed-musallam merged commit 9eeab1f into main Jan 21, 2026
12 checks passed
@hamed-musallam hamed-musallam deleted the refactor-next-prev-component-width-observer branch January 21, 2026 13:09
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.

2 participants