You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-2Lines changed: 30 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,7 +153,7 @@ class MyComponent extends RxReact.Component {
153
153
}
154
154
}
155
155
```
156
-
Note that when you extend lifecycle methods: `componentWillMount``componentWillReceiveProps` and `componentWillUnMount`, You must call the `super` method.
156
+
Note that when you extend lifecycle methods, you must call the `super` method.
157
157
158
158
> Before the 0.3.x versions `RxReact.Component` also implemented lifecyle mixin behavior, for some perf reasons and because most of the time it's unnecessary this has been removed.
159
159
> If you want reenable this behavior use `FuncSubject` as lifecycle method, or manually apply the `LifecycleMixin` on your class.
@@ -220,5 +220,33 @@ You can also create a `FuncSubject` that extends [`BehaviorSubject`](https://git
220
220
221
221
222
222
```javascript
223
-
var myHandler =FuncSubject.behavior(intialValue, mapFunction)
223
+
var subject =FuncSubject.behavior(intialValue, mapFunction)
224
+
```
225
+
226
+
227
+
### FuncSubject.async
228
+
229
+
You can also create a `FuncSubject` that extends [`AsyncSubject`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/subjects/asyncsubject.md). simply use the `async` function exposed by `FuncSubject`:
230
+
231
+
232
+
```javascript
233
+
var subject =FuncSubject.async(mapFunction)
234
+
```
235
+
236
+
### FuncSubject.replay
237
+
238
+
You can also create a `FuncSubject` that extends [`ReplaySubject`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/subjects/replaysubject.md). simply use the `replay` function exposed by `FuncSubject`:
239
+
240
+
241
+
```javascript
242
+
var subject =FuncSubject.replay(bufferSize, mapFunction)
243
+
```
244
+
245
+
### FuncSubject.replay
246
+
247
+
You can create a `FuncSubject` from any subject base class using the `factory` function expsed by `FuncSubject`:
248
+
249
+
250
+
```javascript
251
+
var subject =FuncSubject.factory(SubjectClass, mapFunction, ...constructorArgs);
0 commit comments