Skip to content

Conversation

@shelcia
Copy link

@shelcia shelcia commented Oct 6, 2020

Hey !! When the user reloads the login page it showed a cross-origin error. So i figured out that it was due to custom hook which sets it value from local storage. When the window is opened the variable is being stored but has the value undefined. So when the user and tries to get data the error case of value undefined is not handled in useLocalStorage hook. I hope it helps. I have learnt from you ;). Keep making awesome clone videos

Copy link

@Zaid-maker Zaid-maker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesnot work for me please provide a snipet

@shelcia
Copy link
Author

shelcia commented Jun 8, 2021

you can find it easily in the commit. I have changed within the useLocalStorage.js

@Zaid-maker
Copy link

Anything about hosting that app

@shelcia
Copy link
Author

shelcia commented Jun 8, 2021

Yes !! I have deployed after learning this. You can look in this repo https://github.com/shelcia/ChatApp. In this you will find the backend and frontend deployment. I used Netlify and Heroku

@Zaid-maker
Copy link

Zaid-maker commented Jun 9, 2021 via email

@Zaid-maker
Copy link

Zaid-maker commented Jun 9, 2021 via email

@Zaid-maker
Copy link

Zaid-maker commented Jun 9, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants