8000 Switch to React 18 by himdel · Pull Request #4867 · ansible/ansible-hub-ui · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Switch to React 18 #4867

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

Merged
merged 7 commits into from
Feb 24, 2024
Merged

Switch to React 18 #4867

merged 7 commits into from
Feb 24, 2024

Conversation

himdel
Copy link
Collaborator
@himdel himdel commented Feb 24, 2024

Extracting from #4866
Replaces #2095

This updates react to v18.

Mostly, the typing of this.context changed to unknown and needs to be typed, which exposes a bunch of type errors, fixing those.
Also, children are no longer implied in prop types, adding where needed.

@github-actions github-actions bot added backport-4.7 This PR should be backported to stable-4.7 (2.4) backport-4.9 This PR should be backported to stable-4.9 (2.4) labels Feb 24, 2024
@himdel himdel added insights insights-only feature and removed backport-4.7 This PR should be backported to stable-4.7 (2.4) backport-4.9 This PR should be backported to stable-4.9 (2.4) labels Feb 24, 2024
    perl -i -npe 's/this.context/(this.context as IAppContextType)/g' src/**/*.*
    npm run lint:ts 2>&1 | grep 'Cannot find name' | cut -d\( -f1 | sort -u |
    while read filename; do
        sed -i '1s/^/import { IAppContextType } from '\''src\/loaders\/app-context'\'';^M/' "$filename"
    done
@himdel himdel merged commit 19256b8 into ansible:master Feb 24, 2024
@himdel himdel deleted the r18 branch February 24, 2024 06:30
@himdel himdel mentioned this pull request Feb 26, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
insights insights-only feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0