MCPcopy Index your code
hub / github.com/react-component/form / componentWillReceiveProps

Function componentWillReceiveProps

src/createBaseForm.js:93–97  ·  view source on GitHub ↗
(nextProps)

Source from the content-addressed store, hash-verified

91 },
92
93 componentWillReceiveProps(nextProps) {
94 if (mapPropsToFields) {
95 this.fieldsStore.updateFields(mapPropsToFields(nextProps));
96 }
97 },
98
99 componentDidUpdate() {
100 this.cleanUpUselessFields();

Callers

nothing calls this directly

Calls 2

updateFieldsMethod · 0.80
mapPropsToFieldsFunction · 0.50

Tested by

no test coverage detected