0

I'm trying to update a component after receiving props from redux using componentWillReceiveProps. On the next instance that props are sent to the component by redux componentWillReceiveProps does not fire a second time. Any idea why this is happening and the best lifecycle component to use in such a situation?.

Josh
  • 827
  • 5
  • 7
  • You'll have to show us your code to get any kind of meaningful answer. – mypetlion Dec 11 '18 at 00:12
  • make sure your component is `connect`-ed with react-redux. That way you dont have to update manually. The component will re-render when prop changes. – Ziyo Dec 11 '18 at 03:07

0 Answers0