Noisy Console warning for .defaultProps in Plugin Ideal Image #10775
Replies: 2 comments 1 reply
-
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.
-
Sorry for the slow response here! I see that you merged my PR. 🙏 Hopefully it does fix it. 🤞 I was just running To reproduce
|
Beta Was this translation helpful? Give feedback.
-
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