-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[internal] improve react code in UI mode, trace viewer and html report #31863
Labels
Comments
Would be probably also great to migrate away from ReactDOM.render to |
This was referenced Jul 29, 2024
Skn0tt
added a commit
that referenced
this issue
Jul 31, 2024
Addresses #31863. This PR is chonky, but the individual commits should be easy to review. If they're not, i'm happy to break them out into individual PRs. There's two main things this does: 1. Remove some unused imports 2. Add a `clsx`-inspired helper function for classname templating I wasn't able to replace `ReactDOM.render` with `ReactDOM.createRoot`. This is the new recommended way starting with React 18, and the existing one is going to be deprecated at some point. But it somehow breaks our tests, i'll have to investigate that separately.
This was referenced Aug 8, 2024
Skn0tt
added a commit
that referenced
this issue
Aug 12, 2024
Part of #31863. Updates `recorder` to use React 18.
Skn0tt
added a commit
that referenced
this issue
Aug 12, 2024
Part of #31863. Updates most of our React usage to React 18. `recorder` doesn't seem to like it yet. I suspect that some of our code isn't compatible with concurrent mode, i've investigated that in #32101. --------- Signed-off-by: Simon Knott <[email protected]> Co-authored-by: Max Schmitt <[email protected]>
We've refactored some of the React code, introduced |
Great work! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some ideas:
clsx
for easier class names;context
to avoid passing many constant props around;localStorage
anduseState()
;The text was updated successfully, but these errors were encountered: