Skip to content

Commit 6d0b0f3

Browse files
author
Kaushik Gopal
committed
wip: pseudo cache is still wip
1 parent 9c4f75e commit 6d0b0f3

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,17 @@ Note that the `Func3` function that checks for validity, kicks in only after ALL
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

8787

88+
## Work in Progress:
89+
90+
Examples that I would like to have here, but haven't found the time yet to flush out.
91+
8892
### Retrieve data first from a (pseudo) cache, then a network call - using [`.concat`](http://reactivex.io/documentation/operators/concat.html)
8993

9094
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.
9195

9296
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.
9397

9498

95-
## Work in Progress:
96-
97-
Examples that I would like to have here, but haven't found the time yet to flush out.
98-
99-
10099
### Pagination (wip)
101100

102101
a. Simple pagination

0 commit comments

Comments
 (0)