Skip to content

Commit 00859eb

Browse files
committed
fix md
1 parent 2a8f98c commit 00859eb

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131

3232
## 0.0.9 - May 22, 2019
3333

34-
- Initial version, created by Stagehand
34+
- Initial version, created by Stagehand

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
</p>
2020

2121
- Reactive redux store for `Dart` & `Flutter` inspired by **[RxRedux-freeletics](https://github.com/freeletics/RxRedux)**
22+
2223
- A Redux store implementation entirely based on Dart `Stream`, with the power of `RxDart` (inspired by [redux-observable](https://redux-observable.js.org))
2324
that helps to isolate side effects. RxRedux is (kind of) a replacement for RxDart's `.scan()` operator.
2425

@@ -46,6 +47,7 @@ This library offers a custom stream transformer `ReduxStoreStreamTransformer` (o
4647
- A Store is basically an stream container for state.
4748
This library offers a custom stream transformer `ReduxStoreStreamTransformer` (or extension method `reduxStore`) to create such a state container.
4849
It takes an `initialState` and a list of `SideEffect<State, Action>` and a `Reducer<State, Action>`.
50+
4951
- Since version 2.x, add `RxReduxStore` class, built for Flutter UI.
5052

5153
### Action
@@ -205,7 +207,7 @@ State reducer(State state, Action action) {
205207

206208
#### 5. Combine all it into one
207209

208-
- Using `ReduxStoreStreamTransformer`:
210+
- Using `ReduxStoreStreamTransformer`:
209211

210212
```dart
211213
final Stream<Action> actions = PublishSubject<Action>();
@@ -251,7 +253,6 @@ The [following video](https://youtu.be/M7lx9Y9ANYo) (click on it) illustrates th
251253

252254
[![RxRedux explanation](https://i.ytimg.com/vi/M7lx9Y9ANYo/hqdefault.jpg?sqp=-oaymwEXCNACELwBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLAqwunKP2_qGE0HYUlquWkFccM5MA)](https://youtu.be/M7lx9Y9ANYo)
253255

254-
255256
0. Let's take a look at the following illustration:
256257
The blue box is the `View` (think UI).
257258
The `Presenter` or `ViewModel` has not been drawn for the sake of readability but you can think of having such additional layers between View and Redux State Machine.
@@ -353,12 +354,12 @@ upstreamActions.reduxStore(
353354
```
354355

355356
So the workflow is as follows:
356-
1. Upstream emits `SomeAction`
357-
2. `reducer` processes `SomeAction`
358-
3. `SideEffect1` reacts on `SomeAction` and emits `OtherAction` as output
359-
4. `reducer` processes `OtherAction`
360-
5. `SideEffect2` reacts on `OtherAction` and emits `YetAnotherAction`
361-
6. `reducer` processes `YetAnotherAction`
357+
1. Upstream emits `SomeAction`
358+
2. `reducer` processes `SomeAction`
359+
3. `SideEffect1` reacts on `SomeAction` and emits `OtherAction` as output
360+
4. `reducer` processes `OtherAction`
361+
5. `SideEffect2` reacts on `OtherAction` and emits `YetAnotherAction`
362+
6. `reducer` processes `YetAnotherAction`
362363

363364
### Can I use `variable` and `function` for `SideEffects` or `Reducer`?
364365

0 commit comments

Comments
 (0)