Skip to content

Commit

Permalink
woops updated docs the wrong way!
Browse files Browse the repository at this point in the history
  • Loading branch information
nerrad committed Apr 11, 2019
1 parent 4574a38 commit 0bb2bf7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,8 @@ _Returns_
Given the name of a registered store, returns an object of the store's action creators.
Calling an action creator will cause it to be dispatched, updating the state value accordingly.

Note: This will return a promise.
Note: Action creators returned by the dispatch will return a promise when
they are called.

_Usage_

Expand Down
4 changes: 2 additions & 2 deletions packages/data/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ export const select = defaultRegistry.select;
* Given the name of a registered store, returns an object of the store's action creators.
* Calling an action creator will cause it to be dispatched, updating the state value accordingly.
*
* Note: If the action creator is a generator or returns a promise, a promise is
* returned. Otherwise, the dispatch will return `undefined`.
* Note: Action creators returned by the dispatch will return a promise when
* they are called.
*
* @param {string} name Store name
*
Expand Down

1 comment on commit 0bb2bf7

@aduth
Copy link
Member

@aduth aduth commented on 0bb2bf7 Apr 11, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I struggled when considering to leave the review comment on the generated documentation or on the source. In retrospect, I probably should have just duplicated the comment to both. 😄

Please sign in to comment.