Skip to content

Commit b26b973

Browse files
authored
Merge pull request #234 from jefflewis/fix-next-props
Fix next props call
2 parents 8f57a98 + 290ae63 commit b26b973

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ export default class ViewShot extends Component<Props> {
255255

256256
static getDerivedStateFromProps(props, state) {
257257
if(props.captureMode !== undefined) {
258-
if (nextProps.captureMode !== this.props.captureMode) {
259-
this.syncCaptureLoop(nextProps.captureMode);
258+
if (props.captureMode !== this.props.captureMode) {
259+
this.syncCaptureLoop(props.captureMode);
260260
}
261261
}
262262
return null;

0 commit comments

Comments
 (0)