2018-10-12 15:37:13 -04:00
|
|
|
---
|
|
|
|
title: Dispatch an Action Event
|
|
|
|
---
|
2019-07-24 00:59:27 -07:00
|
|
|
# Dispatch an Action Event
|
2018-10-12 15:37:13 -04:00
|
|
|
|
2019-07-24 00:59:27 -07:00
|
|
|
---
|
|
|
|
## Problem Explanation
|
2018-10-12 15:37:13 -04:00
|
|
|
Dispatch the LOGIN action to the Redux store by calling the dispatch method, and pass in the action created by `loginAction()`.
|
|
|
|
|
2019-07-24 00:59:27 -07:00
|
|
|
|
|
|
|
---
|
|
|
|
## Solutions
|
|
|
|
|
|
|
|
<details><summary>Solution 1 (Click to Show/Hide)</summary>
|
|
|
|
|
2019-05-15 10:08:19 -07:00
|
|
|
```jsx
|
2018-10-12 15:37:13 -04:00
|
|
|
store.dispatch(loginAction());
|
|
|
|
```
|
2019-07-24 00:59:27 -07:00
|
|
|
|
|
|
|
</details>
|