xobotyi/react-scrollbars-custom

Incompatible with React 18 in strict mode

nop33 opened this issue · 18 comments

nop33 commented

What is the current behavior?

Fails to render in strict mode React 18.

Element was not created. Possibly you haven't provided HTMLDivElement to renderer's `elementRef` function.

Steps to reproduce

https://codesandbox.io/s/confident-robinson-tgd5pb

What is the expected behavior?

To properly render scrollbars.

A little about versions:

  • OS: all
  • Browser (vendor and version): all
  • React: 18
  • react-scrollbars-custom: 4.1.1
  • Did this worked in the previous package version? no

Same for me

Same for me

same here

Same as well. What is the current status of the issue?

jmynes commented

ditto

same for me

Same for me

And same for me in Next js 14.0

same

same

Same

facing same issue

More than a year for this issue without this being addressed while 18 is still the latest official version. I guess the project is pretty much dead.

I know, right? Time to implement my own scrollbars...

ok uninstalling package...