V
V
Vanya Huk2018-06-22 17:37:19
React
Vanya Huk, 2018-06-22 17:37:19

Why is nextProps always equal to this.props in componentWillReceiveProps?

there is a method

componentDidUpdate(nextProps){
    console.log( nextProps.changed.page, this.props.changed.page )
  }

react works in conjunction with redux
why is nextProps always equal to this.props ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2018-06-22
@rockon404

It should not be.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question