BotFramework-WebChat icon indicating copy to clipboard operation
BotFramework-WebChat copied to clipboard

ReactWebChat - defaultProps will be removed

Open fabrifls opened this issue 2 years ago • 9 comments

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?

Warning: EventSpy: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

Warning: ConnectivityStatusConnecting: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

How to reproduce the issue?

render <ReactWebChat />

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?

image

Adaptive Card JSON

No response

Additional context

No response

fabrifls avatar Aug 28 '23 22:08 fabrifls

Thanks for letting us know defaultProps will be removed. We will move our defaults into JavaScript default parameters. :)

compulim avatar Sep 01 '23 20:09 compulim

Note to myself: when working on this, also fix another React warning which only appears when using Web Chat via npm install.

compulim avatar Sep 01 '23 21:09 compulim

any update of this?

fabrifls avatar Apr 19 '24 17:04 fabrifls

any update?

donald-boosted avatar Apr 30 '24 16:04 donald-boosted

any updates? in which version we can expect the fix? Till then do we have any alternative workaround to solve this error?

niteshpk avatar May 13 '24 16:05 niteshpk

It's been 11 months and this has not been resolved yet. Do we expect a fix soon?

ayoussef-insight avatar Jun 28 '24 12:06 ayoussef-insight

I attempted a draft fix of this in #5278. Let me know what you all think

steveberdy avatar Sep 05 '24 18:09 steveberdy

Any update on this issue?

MaxiPigna avatar Feb 20 '25 16:02 MaxiPigna

Any update on this?

vasnakos avatar Apr 24 '25 11:04 vasnakos