twreporter-redux
Advanced tools
Comparing version 1.0.0-alpha-0.16 to 1.0.0-alpha-0.17
@@ -75,3 +75,5 @@ 'use strict'; | ||
type: _actionTypes2.default.START_TO_GET_A_FULL_POST, | ||
url: url | ||
payload: { | ||
slug: slug | ||
} | ||
}); | ||
@@ -78,0 +80,0 @@ |
@@ -60,3 +60,5 @@ 'use strict'; | ||
type: _actionTypes2.default.START_TO_GET_A_FULL_TOPIC, | ||
url: url | ||
payload: { | ||
slug: slug | ||
} | ||
}); | ||
@@ -63,0 +65,0 @@ |
@@ -65,3 +65,4 @@ 'use strict'; | ||
isFetching: true, | ||
url: action.url | ||
slug: _.get(action, 'payload.slug'), | ||
error: null | ||
}; | ||
@@ -68,0 +69,0 @@ |
@@ -60,4 +60,6 @@ 'use strict'; | ||
case _actionTypes2.default.START_TO_GET_A_FULL_TOPIC: | ||
console.log('url to fetch:', action.url); | ||
return state; | ||
return { | ||
slug: _.get(action, 'payload.slug'), | ||
error: null | ||
}; | ||
@@ -64,0 +66,0 @@ case _actionTypes2.default.ERROR_TO_GET_A_FULL_TOPIC: |
{ | ||
"name": "twreporter-redux", | ||
"version": "1.0.0-alpha-0.16", | ||
"version": "1.0.0-alpha-0.17", | ||
"description": "redux actions and reducers for twreporter website", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -37,3 +37,5 @@ import apiEndpoints from '../constants/api-endpoints' | ||
type: types.START_TO_GET_A_FULL_POST, | ||
url, | ||
payload: { | ||
slug, | ||
} | ||
}) | ||
@@ -40,0 +42,0 @@ |
@@ -34,3 +34,5 @@ | ||
type: types.START_TO_GET_A_FULL_TOPIC, | ||
url, | ||
payload: { | ||
slug, | ||
} | ||
}) | ||
@@ -37,0 +39,0 @@ |
@@ -32,3 +32,4 @@ import types from '../constants/action-types' | ||
isFetching: true, | ||
url: action.url, | ||
slug: _.get(action, 'payload.slug'), | ||
error: null, | ||
} | ||
@@ -35,0 +36,0 @@ |
@@ -29,4 +29,6 @@ import types from '../constants/action-types' | ||
case types.START_TO_GET_A_FULL_TOPIC: | ||
console.log('url to fetch:', action.url) | ||
return state | ||
return { | ||
slug: _.get(action, 'payload.slug'), | ||
error: null, | ||
} | ||
@@ -33,0 +35,0 @@ case types.ERROR_TO_GET_A_FULL_TOPIC: |
166118
4629