React-bootstrap-table2: Warning: Using UNSAFE_componentWillReceiveProps in strict mode

Created on 1 Apr 2020  路  42Comments  路  Source: react-bootstrap-table/react-bootstrap-table2

I keep getting the following error:

index.js:1 Warning: Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://fb.me/react-unsafe-component-lifecycles 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

Please update the following components: BootstrapTable, BootstrapTableContainer, DataProvider

Most helpful comment

My Solution : let's try remove from index.js

All 42 comments

Facing the same issue, any updates on progress?

I have the exact same issue. Any updates?

Same here, help

+1 same issue!

Same here. Love this table. Thank you.

hi having the same issue , any updates from this? thanks

Same here!

Please update this :(

Same here!

@AllenFang have you seen the messages ?

same here

same :(

Same here

Hello Any Update on this?

same here.. :(

nothing yet?

Well it's a well-known issue, its either get fixed or the library goes to deprecation

Same here, expecting to hear about it

Also facing the same issue here... Seems like deprecated v1 is more production trustable at this point...

Same heeerreeee

+1

+1

Same issue

same issue here

Looks like this is not supported any more.

+1

My Solution : let's try remove from index.js

@AllenFang any update here? ty

https://github.com/react-bootstrap-table/react-bootstrap-table2/issues/1056 - I found this PR which was raised but I think the issue still persists. I too am facing the same issue

I use "react-bootstrap-table-next": "^4.0.3" the issue still exists. @AllenFang Is there any plan to fix?

Warning: Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles 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://reactjs.org/link/derived-state

Please update the following components: BootstrapTable, BootstrapTableContainer, DataProvider, SearchBar, SearchProvider, SortProvider, ToolkitProvider

Same problem here as well. Any updates?

Same issue. Any updates or workaround? Also @AllenFang, ever came accross this?

+1 same issue

+1 same issue.

+1 same issue

+1 same issue

+1

+1

+1

+1

+1

It has been more than a year already, any update on this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dillobird picture dillobird  路  3Comments

harishkumarreddy12 picture harishkumarreddy12  路  3Comments

josefheld picture josefheld  路  3Comments

bogannathan picture bogannathan  路  4Comments

saifulss picture saifulss  路  4Comments