Skip to content

Commit ac0bed0

Browse files
authored
fix typo and links (#32)
* fix typo and links * Update CreateStore.kt
1 parent b581208 commit ac0bed0

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/src/commonMain/kotlin/org/reduxkotlin/CreateStore.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ fun <State> createStore(
105105
|If you would like to be notified after the store has been updated,
106106
|subscribe from a component and invoke store.getState() in the
107107
|callback to access the latest state. See
108-
|https://redux.js.org/api-reference/store#subscribe(listener)
108+
|https://www.reduxkotlin.org/api/store#subscribelistener-storesubscriber
109109
|for more details.""".trimMargin()
110110
}
111111

@@ -122,7 +122,7 @@ fun <State> createStore(
122122
check(!isDispatching) {
123123
"""You may not unsubscribe from a store listener while the reducer
124124
|is executing. See
125-
|https://redux.js.org/api-reference/store#subscribe(listener)
125+
|https://www.reduxkotlin.org/api/store#subscribelistener-storesubscriber
126126
|for more details.""".trimMargin()
127127
}
128128

website/docs/api/Store.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ To create it, pass your root [reducing function](../Glossary.md#reducer) to
2626
2727
### Store Methods
2828

29-
- [`getState()`](#getstate)
30-
- [`dispatch(action)`](#dispatchaction)
31-
- [`subscribe(listener)`](#subscribelistener)
32-
- [`replaceReducer(nextReducer)`](#replacereducernextreducer)
29+
- [`getState()`](#getstate-_or_-state-property)
30+
- [`dispatch(action)`](#dispatchaction-any-any)
31+
- [`subscribe(listener)`](#subscribelistener-storesubscriber)
32+
- [`replaceReducer(nextReducer)`](#replacereducernextreducer-reducer-state-unit)
3333

3434
## Store Methods
3535

@@ -116,7 +116,7 @@ store.dispatch(AddTodo("Read about the middleware"))
116116

117117
<hr>
118118

119-
### subscribe(listener: StoreSubstriber)
119+
### subscribe(listener: StoreSubscriber)
120120

121121
Adds a change listener. It will be called any time an action is dispatched, and some part of the
122122
state tree may potentially have changed. You may then call [`getState()`](#getState) to read the

0 commit comments

Comments
 (0)