We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8f57a98 + 290ae63 commit b26b973Copy full SHA for b26b973
src/index.js
@@ -255,8 +255,8 @@ export default class ViewShot extends Component<Props> {
255
256
static getDerivedStateFromProps(props, state) {
257
if(props.captureMode !== undefined) {
258
- if (nextProps.captureMode !== this.props.captureMode) {
259
- this.syncCaptureLoop(nextProps.captureMode);
+ if (props.captureMode !== this.props.captureMode) {
+ this.syncCaptureLoop(props.captureMode);
260
}
261
262
return null;
0 commit comments