Open fabricioloupias opened 1 year ago
Thanks for letting us know defaultProps
will be removed. We will move our defaults into JavaScript default parameters. :)
Note to myself: when working on this, also fix another React warning which only appears when using Web Chat via npm install
.
any update of this?
any update?
any updates? in which version we can expect the fix? Till then do we have any alternative workaround to solve this error?
It's been 11 months and this has not been resolved yet. Do we expect a fix soon?
I attempted a draft fix of this in #5278. Let me know what you all think
Is it an issue related to Adaptive Cards?
No
Is this an accessibility issue?
No
What version of Web Chat are you using?
Latest production
Which distribution are you using Web Chat from?
Bundle (webchat.js)
Which hosting environment does this issue primarily affect?
Web apps
Which browsers and platforms do the issue happened?
No response
Which area does this issue affect?
Development experience
What is the public URL for the website?
No response
Please describe the bug
I am using the react component in version 4.15.9. I find that I get a lot of alerts like "Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead" Clearly in future versions of react, defaultProps is going to be removed.
Do you see any errors in console log?
How to reproduce the issue?
render
What do you expect?
Release a fix to stop using defaultProps
What actually happened?
-
Do you have any screenshots or recordings to repro the issue?
Adaptive Card JSON
No response
Additional context
No response