react-infinite-scroll-component
react-infinite-scroll-component copied to clipboard
error: UNSAFE_componentWillReceiveProps in strict mode is not recommended
I am using react 16.13.1 react-infinite-scroll-component 5.0.5
error: 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 memorization techniques or move it to static getDerivedStateFromProps. Learn more at https://fb.me/react-derived-state
Please update the following components: InfiniteScroll
Hi I'm using same verion and get same error massage.
Also getting this same error.
Hi also get this error.
+1
I have the same...
Yeah, I get that too... are you guys using it in a function component as well?
Yeah, I get that too... are you guys using it in a function component as well?
Yes exactly. Do you think it matters?
Go with react-infinite-scroller
i just get this error, how can i fix this?
i just get this error, how can i fix this?
As I said in a message above go with react-infinite-scroller
There's still open PR https://github.com/ankeetmaini/react-infinite-scroll-component/pull/178 which can solve this issue. PR is waiting for you @ankeetmaini .
There's still open PR #178 which can solve this issue. PR is waiting for you @ankeetmaini .
there is a conflicting file in the pull request
Is this issue fixed? or still open?
+1
+1
New PR #224 without conflicts. Waiting for @ankeetmaini
save problem
{
"react-infinite-scroll-component": "^6.0.0",
}
Does any news related to that? I still face that warning on version 6.0.0 tnx
Same problem here
i hope it get fix because its really good library. but project manager wont let push until error get fixed
Same problem
Any news, when can we expect this to be resolved?
it work with me :) remove React.StrictMode from index.js replace:
<React.StrictMode> <App /> </React.StrictMode>,<> <App /> </>,
That is for sure not considerable approach...
Check this for more input: https://reactjs.org/docs/strict-mode.html
Same problem