Noisy Console warning for .defaultProps in Plugin Ideal Image #10775
Unanswered
AndrewSepic
asked this question in
General
Replies: 1 comment
-
Thanks It's super weird because I'm using IdealImage on our website running 18.3.1 and didn't see this warning anywhere, even on pages using it. I've fixed it on the Docusaurus site in the React 19 support PR (#10763) but will probably merge your PR instead, since there's a React 18 warning, and we'd be able to fix it by releasing a patch in this package instead of a patch in Docusaurus (simpler for me). But really curious, can you help me reproduce this warning first to ensure that we properly get rid of it? Are you running |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @slorber , The use of
plugin-ideal-image
on a new version of docusaurus3.6.3
causes a noisy console warning about the use of defaultProps outside the component function.I don't see this as an 'issue' as it's not actually an error, but I maintain a bunch of customized docusaurus sites and it's nice to have a clear console so debugging is easier when tracking down my own errors. 😉
I've PR'd a an update to your
@slorber/react-ideal-image
here if this is something that would be helpful to others as well.Beta Was this translation helpful? Give feedback.
All reactions