You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing the following error starting in Swagger-UI 5.18.0 and continuing through 5.18.2 on my Swagger page:
Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
Please update the following components: OperationContainer
To reproduce...
Steps to reproduce the behavior:
Go to the Swagger UI page
Page throws an error
Expected behavior
No error
Screenshots
The text was updated successfully, but these errors were encountered:
Next.js 15 uses Strict Mode by default, which is why we encountered this issue. swagger-ui-react still uses the deprecated UNSAFE_componentWillReceiveProps in several places.
Q&A (please complete the following information)
Content & configuration
I'm using a vanilla Swagger Page inside a Next.js 15 / React 19 application:
Describe the bug you're encountering
I'm seeing the following error starting in Swagger-UI
5.18.0
and continuing through5.18.2
on my Swagger page:To reproduce...
Steps to reproduce the behavior:
Expected behavior
No error
Screenshots
The text was updated successfully, but these errors were encountered: