Skip to content

ReactWebChat - defaultProps will be removed #4836

@fabrifls

Description

@fabrifls

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.bugIndicates an unexpected problem or an unintended behavior.customer-reportedRequired for internal Azure reporting. Do not delete.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions