diff --git a/packages/data/README.md b/packages/data/README.md index 6761f0656139e9..1e8b717df9c5ff 100644 --- a/packages/data/README.md +++ b/packages/data/README.md @@ -332,8 +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: If the action creator is a generator then a promise is returned. -Otherwise, the dispatch will return `undefined`. +Note: If the action creator is a generator or returns a promise, a promise is +returned. Otherwise, the dispatch will return `undefined`. _Usage_ diff --git a/packages/data/src/index.js b/packages/data/src/index.js index ab32d7e2375e96..ea5912ec08a987 100644 --- a/packages/data/src/index.js +++ b/packages/data/src/index.js @@ -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 then a promise is returned. - * Otherwise, the dispatch will return `undefined`. + * Note: If the action creator is a generator or returns a promise, a promise is + * returned. Otherwise, the dispatch will return `undefined`. * * @param {string} name Store name *