Skip to content

Commit dfe7998

Browse files
FLGMwtmarkerikson
authored andcommitted
docs: fix Store api sidebar links (reduxjs#3462)
1 parent 312c184 commit dfe7998

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/api/Store.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ To create it, pass your root [reducing function](../Glossary.md#reducer) to [`cr
1919
2020
### Store Methods
2121

22-
- [`getState()`](#getState)
23-
- [`dispatch(action)`](#dispatch)
24-
- [`subscribe(listener)`](#subscribe)
25-
- [`replaceReducer(nextReducer)`](#replaceReducer)
22+
- [`getState()`](#getstate)
23+
- [`dispatch(action)`](#dispatchaction)
24+
- [`subscribe(listener)`](#subscribelistener)
25+
- [`replaceReducer(nextReducer)`](#replacereducernextreducer)
2626

2727
## Store Methods
2828

29-
### <a id='getState' class='anchor'></a>[`getState()`](#getState)
29+
### getState()
3030

3131
Returns the current state tree of your application.
3232
It is equal to the last value returned by the store's reducer.
@@ -37,7 +37,7 @@ _(any)_: The current state tree of your application.
3737

3838
<hr>
3939

40-
### <a id='dispatch' class='anchor'></a>[`dispatch(action)`](#dispatch)
40+
### dispatch(action)
4141

4242
Dispatches an action. This is the only way to trigger a state change.
4343

@@ -86,7 +86,7 @@ store.dispatch(addTodo('Read about the middleware'))
8686

8787
<hr>
8888

89-
### <a id='subscribe' class='anchor'></a>[`subscribe(listener)`](#subscribe)
89+
### subscribe(listener)
9090

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

@@ -138,7 +138,7 @@ unsubscribe()
138138

139139
<hr>
140140

141-
### <a id='replaceReducer' class='anchor'></a>[`replaceReducer(nextReducer)`](#replaceReducer)
141+
### replaceReducer(nextReducer)
142142

143143
Replaces the reducer currently used by the store to calculate the state.
144144

0 commit comments

Comments
 (0)