We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e6924d commit 8f1d314Copy full SHA for 8f1d314
5-redux-react/src/js/actions/tweetsActions.js
@@ -2,7 +2,13 @@ import axios from "axios";
2
3
export function fetchTweets() {
4
return function(dispatch) {
5
- axios.get("http://rest.learncode.academy/api/test123/tweets")
+ /*
6
+ http://rest.learncode.academy is a public test server, so another user's experimentation can break your tests
7
+ If you get console errors due to bad data:
8
+ - change "reacttest" below to any other username
9
+ - post some tweets to http://rest.learncode.academy/api/yourusername
10
+ */
11
+ axios.get("http://rest.learncode.academy/api/reacttest/tweets")
12
.then((response) => {
13
dispatch({type: "FETCH_TWEETS_FULFILLED", payload: response.data})
14
})
0 commit comments