From e67f14d4c54bd6218dca54847c981b480a438cc6 Mon Sep 17 00:00:00 2001 From: Ryan Stelly Date: Tue, 16 Jul 2019 19:32:08 -0500 Subject: [PATCH] docs: fix Store api sidebar links (#3462) --- docs/api/Store.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/api/Store.md b/docs/api/Store.md index e713903708..982db58587 100644 --- a/docs/api/Store.md +++ b/docs/api/Store.md @@ -19,14 +19,14 @@ To create it, pass your root [reducing function](../Glossary.md#reducer) to [`cr ### Store Methods -- [`getState()`](#getState) -- [`dispatch(action)`](#dispatch) -- [`subscribe(listener)`](#subscribe) -- [`replaceReducer(nextReducer)`](#replaceReducer) +- [`getState()`](#getstate) +- [`dispatch(action)`](#dispatchaction) +- [`subscribe(listener)`](#subscribelistener) +- [`replaceReducer(nextReducer)`](#replacereducernextreducer) ## Store Methods -### [`getState()`](#getState) +### getState() Returns the current state tree of your application. 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.
-### [`dispatch(action)`](#dispatch) +### dispatch(action) Dispatches an action. This is the only way to trigger a state change. @@ -86,7 +86,7 @@ store.dispatch(addTodo('Read about the middleware'))
-### [`subscribe(listener)`](#subscribe) +### subscribe(listener) 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. @@ -138,7 +138,7 @@ unsubscribe()
-### [`replaceReducer(nextReducer)`](#replaceReducer) +### replaceReducer(nextReducer) Replaces the reducer currently used by the store to calculate the state.