소스 검색

Fix next props call

Jeff Lewis 4 년 전
부모
커밋
290ae63c1b
No account linked to committer's email address
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      src/index.js

+ 2
- 2
src/index.js 파일 보기

@@ -255,8 +255,8 @@ export default class ViewShot extends Component<Props> {
255 255
 
256 256
   static getDerivedStateFromProps(props, state) {
257 257
     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);
260 260
       }
261 261
     }
262 262
     return null;