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
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,11 +14,12 @@ Reactive storage for Dart/Flutter. RxDart Storage for Dart/Flutter.
14
14
## Note: [rx_shared_preferences](https://github.com/hoc081098/rx_shared_preferences) is an extension of this package.
15
15
16
16
## More detail about returned `Stream`
17
+
17
18
- It's a **single-subscription `Stream`** (ie. it can only be listened once).
18
19
19
20
-`Stream` will emit the **value (nullable)** or **a `TypeError`** as its first event when it is listen to.
20
21
21
-
- It will automatic emits value when value associated with key was changed successfully
22
+
- It will automatically emit value when value associated with key was changed successfully
22
23
(**emit `null`** when value associated with key was `removed` or set to `null`).
23
24
24
25
- When value read from Storage has a type other than expected type:
@@ -27,10 +28,10 @@ Reactive storage for Dart/Flutter. RxDart Storage for Dart/Flutter.
27
28
28
29
-**Can emit** two consecutive data events that are equal. You should use Rx operator like `distinct` (More commonly known as `distinctUntilChanged` in other Rx implementations) to create an `Stream` where data events are skipped if they are equal to the previous data event.
0 commit comments