Andarist / react-textarea-autosize

<textarea /> component for React which grows with content
http://andarist.github.io/react-textarea-autosize/
MIT License
2.22k stars 246 forks source link

react-textarea-autosize depends on use-isomorphic-layout-effect, which does not have react 18 peerDependency yet #347

Closed alevantana closed 1 year ago

alevantana commented 2 years ago

use-isomorphic-layout-effect supports react 18 in version 1.1.2

But react-textarea-autosize depends on use-isomorphic-layout-effect@1.1.1 via use-latest@1.2.1. So when react-textarea-autosize is used in a react 18 project, there is a react peer dependency error in console for use-isomorphic-layout-effect.

Would it be possible to update the use-isomorphic-layout-effect dependency in use-latest and react-textarea-autosize please?

Andarist commented 1 year ago

This has been fixed since use-isomorphic-layout-effect@1.1.2 includes React 18 in its peer dep range