瀏覽代碼

ref(sdk): update comments to exclude mention of componentWillReceiveProps

master
Leonard Kim 7 年之前
父節點
當前提交
d5fb2c2717
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. 1
    1
      android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetView.java
  2. 1
    1
      ios/sdk/src/JitsiMeetView.m

+ 1
- 1
android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetView.java 查看文件

@@ -262,7 +262,7 @@ public class JitsiMeetView
262 262
         // the respective conference again if the first invocation was followed
263 263
         // by leaving the conference. However, React and, respectively,
264 264
         // appProperties/initialProperties are declarative expressions i.e. one
265
-        // and the same URL will not trigger componentWillReceiveProps in the
265
+        // and the same URL will not trigger an automatic re-render in the
266 266
         // JavaScript source code. The workaround implemented bellow introduces
267 267
         // imperativeness in React Component props by defining a unique value
268 268
         // per loadURLObject: invocation.

+ 1
- 1
ios/sdk/src/JitsiMeetView.m 查看文件

@@ -268,7 +268,7 @@ static NSMapTable<NSString *, JitsiMeetView *> *views;
268 268
     // conference again if the first invocation was followed by leaving the
269 269
     // conference. However, React and, respectively,
270 270
     // appProperties/initialProperties are declarative expressions i.e. one and
271
-    // the same URL will not trigger componentWillReceiveProps in the JavaScript
271
+    // the same URL will not trigger an automatic re-render in the JavaScript
272 272
     // source code. The workaround implemented bellow introduces imperativeness
273 273
     // in React Component props by defining a unique value per loadURLObject:
274 274
     // invocation.

Loading…
取消
儲存