(props, state, inst)
| 339 | } |
| 340 | |
| 341 | function callGetSnapshotBeforeUpdate (props, state, inst) { |
| 342 | const { getSnapshotBeforeUpdate } = inst |
| 343 | let snapshot |
| 344 | errorCatcher(() => { |
| 345 | if (isFunction(getSnapshotBeforeUpdate)) { |
| 346 | snapshot = getSnapshotBeforeUpdate.call(inst, props, state) |
| 347 | } |
| 348 | }, inst) |
| 349 | return snapshot |
| 350 | } |
| 351 | |
| 352 | function hasNewLifecycle (component) { |
| 353 | if (isFunction(component.constructor.getDerivedStateFromProps)) { |
no test coverage detected