Skip to content

Commit dcf844a

Browse files
Ivey, SheaIvey, Shea
authored andcommitted
adding prop for query string params.
1 parent 8b2892e commit dcf844a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Request.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Request extends React.Component {
5353
}
5454

5555
getConfig(props) {
56-
return Object.assign({ url: props.url, method: props.method, data: props.data }, props.config)
56+
return Object.assign({ url: props.url, method: props.method, data: props.data, params: props.params }, props.config)
5757
}
5858

5959
makeRequest(config) {
@@ -122,6 +122,7 @@ Request.propTypes = {
122122
url: PropTypes.string.isRequired,
123123
method: PropTypes.string.isRequired,
124124
data: PropTypes.object,
125+
params: PropTypes.object,
125126
config: PropTypes.object,
126127
isReady: PropTypes.bool,
127128
debounce: PropTypes.number,

0 commit comments

Comments
 (0)