Переглянути джерело

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

master
Leonard Kim 6 роки тому
джерело
коміт
d5fb2c2717

+ 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.

Завантаження…
Відмінити
Зберегти