react-refetch icon indicating copy to clipboard operation
react-refetch copied to clipboard

Support for react@17

Open fabiovalse opened this issue 2 years ago • 1 comments

I'm trying to upgrade my app to the latest react version and I noticed that react-refetch works only with:

peer react@"^0.14.0 || ^15.0.0-0 || ^16.0.0-0"

Is there a way to use it with react 17?

fabiovalse avatar Mar 29 '22 09:03 fabiovalse

This is completely untested, but here's theoretically what should be done:

https://github.com/heroku/react-refetch/compare/rb/react-17-and-18

Feel free to try it out on that branch. It really should be validated with what's changed in React 17 and 18, but it is possible it will just work. If anyone has some cycles to do that testing and PR, it would be welcome.

ryanbrainard avatar Mar 31 '22 08:03 ryanbrainard