Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
hfpp2012
/
react-spd
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 49777b88
authored
Jun 09, 2017
by
hfpp2012 yinsigan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix typo
1 parent
65ded2ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/sagas/root.js
src/sagas/root.js
View file @
49777b8
import
{
call
,
put
,
takeEvery
}
from
'redux-saga/effects'
import
{
call
,
put
,
takeEvery
}
from
'redux-saga/effects'
import
axios
from
'axios'
import
axios
from
'axios'
export
function
*
getHeader
()
{
function
*
getHeader
()
{
try
{
try
{
const
response
=
yield
call
(
axios
.
get
,
'/regional_design/repos.json'
);
const
response
=
yield
call
(
axios
.
get
,
'/regional_design/repos.json'
);
yield
put
({
type
:
"HEADER_FETCH_SUCCEEDED"
,
headers
:
response
.
data
});
yield
put
({
type
:
"HEADER_FETCH_SUCCEEDED"
,
headers
:
response
.
data
});
...
@@ -10,7 +10,7 @@ export function* getHeader() {
...
@@ -10,7 +10,7 @@ export function* getHeader() {
}
}
}
}
export
function
*
watchGetHeader
()
{
function
*
watchGetHeader
()
{
yield
takeEvery
(
"HEADER_FETCH_REQUESTED"
,
getHeader
)
yield
takeEvery
(
"HEADER_FETCH_REQUESTED"
,
getHeader
)
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment