react-custom-scroll icon indicating copy to clipboard operation
react-custom-scroll copied to clipboard

fix: resolve React 19 compatibility issue

Open GeraltWang opened this issue 1 year ago • 1 comments

  • Move react and react-dom to peerDependencies to avoid multiple React instances
  • Update build configuration to properly externalize React
  • Fixes 'Cannot read properties of undefined (reading ReactCurrentDispatcher)' error
  • Supports React 18+ including React 19

Resolves compatibility issues when using this package with React 19.

GeraltWang avatar Jul 25 '25 07:07 GeraltWang

image playright tested

GeraltWang avatar Jul 25 '25 07:07 GeraltWang