Skip to content

Commit d7c5f4e

Browse files
author
Kaushik Gopal
committed
fix: cache example no longer wip
fixes issue kaushikgopal#6
1 parent 61e69ff commit d7c5f4e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,19 @@ Note that the `Func3` function that checks for validity, kicks in only after ALL
8484

8585
The value of this technique becomes more apparent when you have more number of input fields in a form. Handling it otherwise with a bunch of booleans makes the code cluttered and kind of difficult to follow. But using `.combineLatest` all that logic is concentrated in a nice compact block of code (I still use booleans but that was to make the example more readable).
8686

87+
### Retrieve data first from a cache, then a network call - using [`.concat`](http://reactivex.io/documentation/operators/concat.html)
8788

88-
## Work in Progress:
89+
Using concat, you can retrieve information from an observable first (presumably this one is fast like retrieveing from a disk cache) and show preliminary data to a user. Subsequently, when the longer running 2nd observable is complete (say a network call), you can update the results on the interface using the latest information.
8990

90-
Examples that I would like to have here, but haven't found the time yet to flush out.
91+
For the purposes of illustration i use an in-memory `List` (not an actual disk cache), then shoot out a real network call to the github api so it gives you a feel of how this can really be applied in production apps.
9192

92-
### Retrieve data first from a (pseudo) cache, then a network call - using [`.concat`](http://reactivex.io/documentation/operators/concat.html)
9393

94-
Using concat, you can retrieve information from an observable first (presumably this one is fast like retrieveing from a disk cache) and show preliminary data to a user. Subsequently, when the longer running 2nd observable is complete (say a network call), you can update the results on the interface using the latest information.
94+
## Work in Progress:
9595

96-
For the purposes of illustration i use an in-memory `List` (not an actual disk cache), but shoot out a real network call to the github api so it gives you a feel of how this can really be applied in production apps.
96+
Examples that I would like to have here, but haven't found the time yet to flush out.
9797

9898

99-
### Pagination (wip)
99+
### Pagination
100100

101101
a. Simple pagination
102102
b. Optimized pagination

0 commit comments

Comments
 (0)