Skip to content

Commit 0423fb9

Browse files
kon-shoutimdorr
authored andcommitted
docs: fix store methods link (reduxjs#3497)
Former-commit-id: db7d881
1 parent 63bf180 commit 0423fb9

15 files changed

+25
-25
lines changed

docs/Glossary.md.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f1e22652399d08b263b74719ed8f39d7b5bdd27b
1+
de724b1ca1df66086e2e63dca00fd8072312fdd9
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
27d89aaee84620f27810f2e4f790f0a9848e5fb4
1+
3396f25b19f4d2e560ed90b0ed297fd99a7c35b7

docs/advanced/AsyncFlow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Without [middleware](Middleware.md), Redux store only supports [synchronous data
1111

1212
You may enhance [`createStore()`](../api/createStore.md) with [`applyMiddleware()`](../api/applyMiddleware.md). It is not required, but it lets you [express asynchronous actions in a convenient way](AsyncActions.md).
1313

14-
Asynchronous middleware like [redux-thunk](https://github.com/gaearon/redux-thunk) or [redux-promise](https://github.com/acdlite/redux-promise) wraps the store's [`dispatch()`](../api/Store.md#dispatch) method and allows you to dispatch something other than actions, for example, functions or Promises. Any middleware you use can then intercept anything you dispatch, and in turn, can pass actions to the next middleware in the chain. For example, a Promise middleware can intercept Promises and dispatch a pair of begin/end actions asynchronously in response to each Promise.
14+
Asynchronous middleware like [redux-thunk](https://github.com/gaearon/redux-thunk) or [redux-promise](https://github.com/acdlite/redux-promise) wraps the store's [`dispatch()`](../api/Store.md#dispatchaction) method and allows you to dispatch something other than actions, for example, functions or Promises. Any middleware you use can then intercept anything you dispatch, and in turn, can pass actions to the next middleware in the chain. For example, a Promise middleware can intercept Promises and dispatch a pair of begin/end actions asynchronously in response to each Promise.
1515

1616
When the last middleware in the chain dispatches an action, it has to be a plain object. This is when the [synchronous Redux data flow](../basics/DataFlow.md) takes place.
1717

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
bbc1e5225652f760034e8bb3ea51eb5ce794564a
1+
a573d2a32cfc6baaa712f47a489ba4db0ee50460

docs/api/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ This section documents the complete Redux API. Keep in mind that Redux is only c
2323

2424
- [Store](Store.md)
2525
- [getState()](Store.md#getState)
26-
- [dispatch(action)](Store.md#dispatch)
27-
- [subscribe(listener)](Store.md#subscribe)
28-
- [replaceReducer(nextReducer)](Store.md#replaceReducer)
26+
- [dispatch(action)](Store.md#dispatchaction)
27+
- [subscribe(listener)](Store.md#subscribelistener)
28+
- [replaceReducer(nextReducer)](Store.md#replacereducernextreducer)
2929

3030
### Importing
3131

docs/api/Store.md.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
982db5858704d4b5502c1c7ef635b7e741d6dfa7
1+
a1e3531009cbbed0d8e2b3bf76b2f96e0f6fe919
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
63f310bdeb2ea916e31d4a2a38371027e969fa63
1+
39bb8971fca8a21d345eec00cebf9a7fc4830bbd

docs/api/bindActionCreators.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ hide_title: true
77

88
# `bindActionCreators(actionCreators, dispatch)`
99

10-
Turns an object whose values are [action creators](../Glossary.md#action-creator), into an object with the same keys, but with every action creator wrapped into a [`dispatch`](Store.md#dispatch) call so they may be invoked directly.
10+
Turns an object whose values are [action creators](../Glossary.md#action-creator), into an object with the same keys, but with every action creator wrapped into a [`dispatch`](Store.md#dispatchaction) call so they may be invoked directly.
1111

12-
Normally you should just call [`dispatch`](Store.md#dispatch) directly on your [`Store`](Store.md) instance. If you use Redux with React, [react-redux](https://github.com/gaearon/react-redux) will provide you with the [`dispatch`](Store.md#dispatch) function so you can call it directly, too.
12+
Normally you should just call [`dispatch`](Store.md#dispatchaction) directly on your [`Store`](Store.md) instance. If you use Redux with React, [react-redux](https://github.com/gaearon/react-redux) will provide you with the [`dispatch`](Store.md#dispatchaction) function so you can call it directly, too.
1313

14-
The only use case for `bindActionCreators` is when you want to pass some action creators down to a component that isn't aware of Redux, and you don't want to pass [`dispatch`](Store.md#dispatch) or the Redux store to it.
14+
The only use case for `bindActionCreators` is when you want to pass some action creators down to a component that isn't aware of Redux, and you don't want to pass [`dispatch`](Store.md#dispatchaction) or the Redux store to it.
1515

1616
For convenience, you can also pass an action creator as the first argument, and get a dispatch wrapped function in return.
1717

1818
#### Parameters
1919

2020
1. `actionCreators` (_Function_ or _Object_): An [action creator](../Glossary.md#action-creator), or an object whose values are action creators.
2121

22-
2. `dispatch` (_Function_): A [`dispatch`](Store.md#dispatch) function available on the [`Store`](Store.md) instance.
22+
2. `dispatch` (_Function_): A [`dispatch`](Store.md#dispatchaction) function available on the [`Store`](Store.md) instance.
2323

2424
#### Returns
2525

docs/api/createStore.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ There should only be a single store in your app.
2020

2121
#### Returns
2222

23-
([_`Store`_](Store.md)): An object that holds the complete state of your app. The only way to change its state is by [dispatching actions](Store.md#dispatch). You may also [subscribe](Store.md#subscribe) to the changes to its state to update the UI.
23+
([_`Store`_](Store.md)): An object that holds the complete state of your app. The only way to change its state is by [dispatching actions](Store.md#dispatchaction). You may also [subscribe](Store.md#subscribelistener) to the changes to its state to update the UI.
2424

2525
#### Example
2626

docs/basics/Actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ hide_title: true
99

1010
First, let's define some actions.
1111

12-
**Actions** are payloads of information that send data from your application to your store. They are the _only_ source of information for the store. You send them to the store using [`store.dispatch()`](../api/Store.md#dispatch).
12+
**Actions** are payloads of information that send data from your application to your store. They are the _only_ source of information for the store. You send them to the store using [`store.dispatch()`](../api/Store.md#dispatchaction).
1313

1414
Here's an example action which represents adding a new todo item:
1515

@@ -107,7 +107,7 @@ boundAddTodo(text)
107107
boundCompleteTodo(index)
108108
```
109109

110-
The `dispatch()` function can be accessed directly from the store as [`store.dispatch()`](../api/Store.md#dispatch), but more likely you'll access it using a helper like [react-redux](http://github.com/gaearon/react-redux)'s `connect()`. You can use [`bindActionCreators()`](../api/bindActionCreators.md) to automatically bind many action creators to a `dispatch()` function.
110+
The `dispatch()` function can be accessed directly from the store as [`store.dispatch()`](../api/Store.md#dispatchaction), but more likely you'll access it using a helper like [react-redux](http://github.com/gaearon/react-redux)'s `connect()`. You can use [`bindActionCreators()`](../api/bindActionCreators.md) to automatically bind many action creators to a `dispatch()` function.
111111

112112
Action creators can also be asynchronous and have side-effects. You can read about [async actions](../advanced/AsyncActions.md) in the [advanced tutorial](../advanced/README.md) to learn how to handle AJAX responses and compose action creators into async control flow. Don't skip ahead to async actions until you've completed the basics tutorial, as it covers other important concepts that are prerequisite for the advanced tutorial and async actions.
113113

docs/basics/DataFlow.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ If you're still not convinced, read [Motivation](../introduction/Motivation.md)
1515

1616
The data lifecycle in any Redux app follows these 4 steps:
1717

18-
1. **You call** [`store.dispatch(action)`](../api/Store.md#dispatch).
18+
1. **You call** [`store.dispatch(action)`](../api/Store.md#dispatchaction).
1919

2020
An [action](Actions.md) is a plain object describing _what happened_. For example:
2121

@@ -27,7 +27,7 @@ An [action](Actions.md) is a plain object describing _what happened_. For exampl
2727

2828
Think of an action as a very brief snippet of news. “Mary liked article 42.” or “'Read the Redux docs.' was added to the list of todos.”
2929

30-
You can call [`store.dispatch(action)`](../api/Store.md#dispatch) from anywhere in your app, including components and XHR callbacks, or even at scheduled intervals.
30+
You can call [`store.dispatch(action)`](../api/Store.md#dispatchaction) from anywhere in your app, including components and XHR callbacks, or even at scheduled intervals.
3131

3232
2. **The Redux store calls the reducer function you gave it.**
3333

@@ -100,7 +100,7 @@ While [`combineReducers()`](../api/combineReducers.md) is a handy helper utility
100100

101101
4. **The Redux store saves the complete state tree returned by the root reducer.**
102102

103-
This new tree is now the next state of your app! Every listener registered with [`store.subscribe(listener)`](../api/Store.md#subscribe) will now be invoked; listeners may call [`store.getState()`](../api/Store.md#getState) to get the current state.
103+
This new tree is now the next state of your app! Every listener registered with [`store.subscribe(listener)`](../api/Store.md#subscribelistener) will now be invoked; listeners may call [`store.getState()`](../api/Store.md#getState) to get the current state.
104104

105105
Now, the UI can be updated to reflect the new state. If you use bindings like [React Redux](https://github.com/gaearon/react-redux), this is the point at which `component.setState(newState)` is called.
106106

docs/basics/Store.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ The **Store** is the object that brings them together. The store has the followi
1313

1414
- Holds application state;
1515
- Allows access to state via [`getState()`](../api/Store.md#getState);
16-
- Allows state to be updated via [`dispatch(action)`](../api/Store.md#dispatch);
17-
- Registers listeners via [`subscribe(listener)`](../api/Store.md#subscribe);
18-
- Handles unregistering of listeners via the function returned by [`subscribe(listener)`](../api/Store.md#subscribe).
16+
- Allows state to be updated via [`dispatch(action)`](../api/Store.md#dispatchaction);
17+
- Registers listeners via [`subscribe(listener)`](../api/Store.md#subscribelistener);
18+
- Handles unregistering of listeners via the function returned by [`subscribe(listener)`](../api/Store.md#subscribelistener).
1919

2020
It's important to note that you'll only have a single store in a Redux application. When you want to split your data handling logic, you'll use [reducer composition](Reducers.md#splitting-reducers) instead of many stores.
2121

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
096182d8ce4140624f483af32cec226808be5617
1+
3bc00bb07f751419aeb4daf6e5806b0ba2d3c001
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e5adb02ee0a7e57874d61544b72809236092972c
1+
a851d648a911d0f1478c7ff0055aaaaf78ed75bc

src/createStore.js.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
efb89310fdb6aadd208a379f935ef42a19714247
1+
cef9a2ecaeff319d4986af24babf1c79ec9912c6

0 commit comments

Comments
 (0)