Skip to content

Incompatible with React 18 in strict mode #343

@nop33

Description

@nop33

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions