-
Notifications
You must be signed in to change notification settings - Fork 2
Upgrades to React 19 #588
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
Upgrades to React 19 #588
Conversation
…/upgrade-to-react-19
# Conflicts: # package-lock.json # package.json
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.
Pull Request Overview
This PR upgrades the Swagger integration to React 19 by removing the swagger-ui-react dependency and dynamically loading the Swagger UI bundle from unpkg.
- Replaces swagger-ui-react with a custom implementation using dynamic script and stylesheet injection.
- Removes unused dependencies from package.json.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/features/docs/view/Swagger.tsx | Implements dynamic loading of Swagger UI and removes deprecated imports. |
| package.json | Removes swagger-ui-react and its corresponding type definitions. |
Comments suppressed due to low confidence (1)
src/features/docs/view/Swagger.tsx:32
- Verify that window.SwaggerUIBundle is defined before invoking it to prevent runtime errors if the script fails to load.
const SwaggerUI = window.SwaggerUIBundle
# Conflicts: # package-lock.json
|
@ulrikandersen Thanks! Just fixed the merge conflict. |
Pull request was converted to draft
|
@ulrikandersen I messed up the merge. Have addressed it in 4f9ae49. |
Requires #587 to be merged, as swagger-ui-react is not compatible with React 19.