getSnapshotBeforeUpdate()
in
test.js [291:293]
3
lines of code
1
McCabe index (conditional complexity)
getSnapshotBeforeUpdate(prevProps) { throw Error('whoops'); }