-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to version of react-json-view that supports React 18 (DC-733). #4035
Conversation
@@ -1,7 +1,7 @@ | |||
import ReactJson from '@microlink/react-json-view'; | |||
import _ from 'lodash/fp'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -1,6 +1,6 @@ | |||
import ReactJson from '@microlink/react-json-view'; | |||
import _ from 'lodash/fp'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import _ from 'lodash/fp'; | ||
import { Fragment, useRef, useState } from 'react'; | ||
import { div, h } from 'react-hyperscript-helpers'; | ||
import ReactJson from 'react-json-view'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -1,7 +1,7 @@ | |||
import ReactJson from '@microlink/react-json-view'; | |||
import _ from 'lodash/fp'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't able to get into a state where I could use the CallCacheWizard, but given that the other 3 usages of this library work I think this is pretty safe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. Thanks for the heads up!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Jira Ticket: https://broadworkbench.atlassian.net/browse/DC-733
Summary of changes:
Upgraded react--json-view to a version that supports React 18 and also ran
yarn dedupe
which cleaned up quite a bit of stuff.Why
react-json-view
library is no longer supported. This is a fork that at least has been updated for React 18 (though is not very actively maintained either).Recommendation for this forked version came from mac-s-g/react-json-view#403.
Testing strategy