-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Step 3, chats not loaded #43
Comments
Have you opened the server side on a separate terminal and run 'yarn start'? Both the server and client side need to be running in order for them to communicate with each other. |
Hello @baeriswyld, I think there are three things that might be the reason of your issue.
Therefore please make sure that you are returning an object not a string. In order to do this, you can use below code.
|
is this still happening with the new version I've pushed yesterday? |
@Urigo a version of this is still happening on master/final version.
|
Hi,
First of all, fantastic tutorial !!!
I have followed all your steps until the end of Step 3 https://github.com/Urigo/WhatsApp-Clone-Tutorial/blob/master/.tortilla/manuals/views/step3.md
The server is up:
curl localhost:4000/chats
response is:[{"id":"1","name":"Ethan Gonzalez","picture":"https://randomuser.me/api/portraits/thumb/men/1.jpg","lastMessage":"1"},{"id":"2","name":"Bryan Wallace","picture":"https://randomuser.me/api/portraits/thumb/men/2.jpg","lastMessage":"2"},{"id":"3","name":"Avery Stewart","picture":"https://randomuser.me/api/portraits/thumb/women/1.jpg","lastMessage":"3"},{"id":"4","name":"Katie Peterson","picture":"https://randomuser.me/api/portraits/thumb/women/2.jpg","lastMessage":"4"}]%
However, when going back to React app and adding .env to the root with
REACT_APP_SERVER_URL=http://localhost:4000
and editing ChatsList.tsx the following:
The chats doent show up in the application anymore.
Any idea what i do wrong ?
The text was updated successfully, but these errors were encountered: