Storybook: Angular 8.2.0 + Storybook 5.2.0-beta.28 throws react warning

Created on 12 Aug 2019  路  8Comments  路  Source: storybookjs/storybook

Describe the bug
Despite the known :first-of-child error from https://github.com/storybookjs/storybook/issues/6998 the latest @next throws

vendors~main.8efd5a8e1001346d62f9.bundle.js:84111 Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.

* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.

Please update the following components: Draggable

To Reproduce
Steps to reproduce the behavior:

  1. npx @angular/cli new sb-example
  2. npx @storybook/init@next init
  3. npm run storybook

Expected behavior
No warning

Screenshots
image

bug dependencies todo ui

Most helpful comment

getting a componentwillreceiveprops warning in 5.2.0-rc.5 of @storybook/react as well

All 8 comments

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

getting a componentwillreceiveprops warning in 5.2.0-rc.5 of @storybook/react as well

I also encountered the same problem using vue.

Same issue for @storybook/react version 5.2.1.

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

Getting the same for @storybook/react version 5.2.1

Getting the same for @storybook/react version 5.2.1

This issue was fixed in version 5.2.2

Closing. Please upgrade to 5.2.2 or above!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ZigGreen picture ZigGreen  路  3Comments

xogeny picture xogeny  路  3Comments

MrOrz picture MrOrz  路  3Comments

alexanbj picture alexanbj  路  3Comments

rpersaud picture rpersaud  路  3Comments