Skip to content

Update react-resize-detector to v12 for React 19 support - #385

Open
ManiShah7 wants to merge 2 commits into
nick-keller:masterfrom
ManiShah7:fix/react-19-resize-detector
Open

Update react-resize-detector to v12 for React 19 support#385
ManiShah7 wants to merge 2 commits into
nick-keller:masterfrom
ManiShah7:fix/react-19-resize-detector

Conversation

@ManiShah7

Copy link
Copy Markdown

Problem

react-datasheet-grid crashes in React 19 projects due to react-resize-detector@^7.1.2 declaring react-dom@^16/17/18 as a peer dependency. When installed alongside React 19, npm resolves a nested react-dom@18 that references ReactSharedInternals.ReactCurrentDispatcher — which was removed in React 19 — causing a runtime error:

TypeError: can't access property "ReactCurrentDispatcher", ReactSharedInternals is undefined

Fixes #370, fixes #378, fixes #381

Changes

  • Updated react-resize-detector from ^7.1.2 to ^12.0.0 in package.json
  • Narrowed peerDependencies.react from ^15 || ^16 || ^17 || ^18 || ^19 to ^18 || ^19 to reflect the actual minimum React version required by react-resize-detector v12

Verification

  • npm install — no peer dependency warnings
  • npm run build — TypeScript compilation succeeds
  • npm test — all 15 test suites pass (99/99 tests)

- Updated react-resize-detector from ^7.1.2 to ^12.0.0
- Narrowed peerDependencies.react to ^18.0.0 || ^19.0.0
@netlify

netlify Bot commented Apr 1, 2026

Copy link
Copy Markdown

Deploy Preview for react-datasheet-grid canceled.

Name Link
🔨 Latest commit c85452e
🔍 Latest deploy log https://app.netlify.com/projects/react-datasheet-grid/deploys/69cc70eb04882700086eb0a6

@ChrisToxz

Copy link
Copy Markdown

Exploring this package but face the issue that it doesn't support React 19.
Is this package still being maintained?

@nick-keller sorry for the ping.

@ibakirov

Copy link
Copy Markdown

@nick-keller Please review PR

@Mioara82

Copy link
Copy Markdown

pls review this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants