Version
4.6.0 (master)
Describe the bug
This bug only affect users who "npm install" Web Chat with devDependencies, e.g. playground or any packages that use npm link or lerna to include Web Chat in their build.
When botframework-webchat is installed with devDependencies, it installed React 0.14.9 due to transient dependencies from webpack-visualizer plugin.
botframework-webchat do not include devDependencies of React 16.8.6. This is because of the "Rules of Hooks" to maintain a single instance of React. We do include React 16.8.6 at the root package, so both playground and botframework-webchat-* will share the same instance of React.
To Reproduce
Steps to reproduce the behavior:
- Clone the repository
- Build
- Run playground
- Type
help
Expected behavior
A list of commands are shown.
Instead, console log say thumbnailCard is having issues with React.useMemo.
Additional context
[Bug]
Version
4.6.0(master)Describe the bug
This bug only affect users who "npm install" Web Chat with
devDependencies, e.g. playground or any packages that usenpm linkorlernato include Web Chat in their build.When
botframework-webchatis installed withdevDependencies, it installed React 0.14.9 due to transient dependencies fromwebpack-visualizerplugin.botframework-webchatdo not includedevDependenciesof React 16.8.6. This is because of the "Rules of Hooks" to maintain a single instance of React. We do include React 16.8.6 at the root package, so bothplaygroundandbotframework-webchat-*will share the same instance of React.To Reproduce
Steps to reproduce the behavior:
helpExpected behavior
A list of commands are shown.
Instead, console log say
thumbnailCardis having issues withReact.useMemo.Additional context
[Bug]