evergreen icon indicating copy to clipboard operation
evergreen copied to clipboard

React 17 Support

Open omonk opened this issue 5 years ago • 11 comments

Are there any plans to bump the react and react-dom peer dependencies to allow react 17? With the npm version 7 reintroduction of installing peer dependencies it is making it tricky to use evergreen without the --legacy-peer-deps flag.

omonk avatar Feb 23 '21 11:02 omonk

Yeah I was about to start a project with React and Evergreen. Step 1 install react. Step 2 install evergreen Step 3 .......oh...step 2 failed

mothattack avatar Mar 12 '21 05:03 mothattack

When will this get updated? Such a great package and would love to use it with latest version of React

Samuel-Montoya avatar Mar 16 '21 22:03 Samuel-Montoya

Hey y'all -- will look into this before the week's done. My guess is it's as simple as loosening up the peer deps requirement (or getting rid of it altogether) to allow for React 17 (especially since there aren't really any major breaking changes in React 17), but I want to be 100% sure first and test locally. Thanks for the patience here 🤞

akleiner2 avatar Mar 16 '21 23:03 akleiner2

Any updates on this?

mothattack avatar Apr 06 '21 01:04 mothattack

This should hopefully be a small update as you say - as there's no breaking changes between React 16 and 17. next.js users can't upgrade to next 11 until Evergreen supports React 17 so it would be timely if the dependencies were updated.

mikemaccana avatar Jun 18 '21 15:06 mikemaccana

Any updates.....?

mirnax3 avatar Jul 08 '21 13:07 mirnax3

Thumbs up for React 17 please!

zuhair-naqvi avatar Jul 13 '21 01:07 zuhair-naqvi

Hey folks, quick update – we've made some upgrades internally and with packages that would have led to a breakage on React 17 (this only affects certain components).

Right now it seems the last package that we'll need to fork or switch off of is react-tiny-virtual-list due to its reliance on deprecated lifecylece method names.

I started looking into switching to react-window which seems to be the defacto standard these days, but it's noticeably slower than react-tiny-virtual-list (this will affect SelectMenu, Table.VirtualBody, and Autocomplete components).

mshwery avatar Jul 28 '21 14:07 mshwery

Ok, gonna cut a release soon now that these have landed:

  • https://github.com/segmentio/ui-box/pull/92
  • https://github.com/segmentio/evergreen/pull/1281

mshwery avatar Jul 29 '21 20:07 mshwery

Released with v6.3.0!

mshwery avatar Jul 29 '21 20:07 mshwery

@mshwery - many thanks for your work!

omonk avatar Jul 30 '21 08:07 omonk