appbaseio / reactivesearch

Search UI components for React and Vue
https://opensource.appbase.io/reactivesearch
Apache License 2.0
4.89k stars 471 forks source link

React 18 Support #2180

Closed kasvith closed 1 year ago

kasvith commented 1 year ago

Affected Projects

React

Is your feature request related to a problem? Please describe.

This package uses React 16 as a peer dep

Describe the solution you'd like

Upgrade to React 18

Describe alternatives you've considered

Additional context

bietkul commented 1 year ago

@kasvith You can use reactivesearch 4.x which supports React 18. https://www.npmjs.com/package/@appbaseio/reactivesearch/v/4.0.0-alpha.2

kasvith commented 1 year ago

Oh, i got this error with redux

I think you may need to update redux dep

.
└─┬ @appbaseio/reactivesearch 4.0.0-alpha.2
  ├─┬ react-redux 6.0.1
  │ ├── ✕ missing peer redux@"^2.0.0 || ^3.0.0 || ^4.0.0-0"
  │ └── ✕ unmet peer react@^16.4.0-0: found 18.2.0
  └─┬ react-day-picker 7.4.10
    └── ✕ unmet peer react@"~0.13.x || ~0.14.x || ^15.0.0 || ^16.0.0 || ^17.0.0"
: found 18.2.0
Peer dependencies that should be installed:
  redux@"^2.0.0 || ^3.0.0 || ^4.0.0-0"
kasvith commented 1 year ago

@bietkul will it be possible to ditch Redux and use something like Zustand/Jotai/Valtio/Context API ?

Since Redux is no longer recommended i think it would be a good thing to move on