MCPcopy Create free account
hub / github.com/flyfloor/react-component / componentWillReceiveProps

Function componentWillReceiveProps

component/Pagination.js:26–32  ·  view source on GitHub ↗
(nextProps)

Source from the content-addressed store, hash-verified

24 },
25
26 componentWillReceiveProps(nextProps) {
27 if (nextProps.current != this.props.current) {
28 this.setState({
29 current: nextProps.current || 1,
30 });
31 }
32 },
33
34 onPageChange(page){
35 const {total, onChange} = this.props;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…