redoc icon indicating copy to clipboard operation
redoc copied to clipboard

Supports React 18

Open Mokto opened this issue 2 years ago • 4 comments

What/Why/How?

npm install crashes right if using version 18

Mokto avatar May 31 '22 14:05 Mokto

@Mokto Hi! Thank you for your contribution. Does it work with React.StrictMode? Details you can check here

AlexVarchuk avatar May 31 '22 15:05 AlexVarchuk

Works perfectly with & without it.

In my case at least. Using the RedocStandalone component.

Mokto avatar May 31 '22 17:05 Mokto

Note: i used npm install --force to force react 18.

Mokto avatar May 31 '22 17:05 Mokto

Hi @Mokto. I tested it with React.StrictMode and it still have problems:

  • doesn't show the left panel
  • the right pane is not displayed correctly
Screenshot 2022-06-01 at 15 29 18

It reproduced with CRA.

Can you provide details of your testing flow? Thanks

AlexVarchuk avatar Jun 01 '22 12:06 AlexVarchuk

We appreciate your contribution, but this PR is not added full support for React 18. We created the issue for that.

AlexVarchuk avatar Sep 13 '22 09:09 AlexVarchuk