flex-webchat-ui-sample icon indicating copy to clipboard operation
flex-webchat-ui-sample copied to clipboard

a bit dated, can be updated for using react hooks?

Open bjm88 opened this issue 4 years ago • 1 comments

I am getting weird warnings about old react context api, can't get it to load properly with useEffect and react hooks, example please...

bjm88 avatar Dec 07 '20 02:12 bjm88

Yeah doesn't work with react 17 Warning: Legacy context API has been detected within a strict-mode tree.

The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.

Please update the following components: Connect(t), DynamicComponent, Provider, Styled(button), Styled(div), ThemeProvider, t

Learn more about this warning here: https://reactjs.org/link/legacy-context

gets a 400 loading. Had to move to componentDidMount or also error setting state before mount.

bjm88 avatar Dec 07 '20 02:12 bjm88