Skip to content

Commit 2b72c8c

Browse files
committed
Document using intl in action, close #54
1 parent de581e9 commit 2b72c8c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,7 @@ There are some examples under the [`examples`](./examples) folder for reference.
146146
* Pass `locale` in `props`.
147147
* Set `key` when dispatching `updateIntl`.
148148
* Provide custom `intlSelector` for `IntlProvider`.
149+
150+
2. How to use `intl` in asynchronous action?
151+
152+
A simple solution would be retrive `intl` object using [`injectIntl`](https://github.com/yahoo/react-intl/wiki/API#injection-api) and pass it in the action payload.

0 commit comments

Comments
 (0)