Skip to content

bug fix - #3

Open
shelcia wants to merge 1 commit into
WebDevSimplified:masterfrom
shelcia:master
Open

bug fix#3
shelcia wants to merge 1 commit into
WebDevSimplified:masterfrom
shelcia:master

Conversation

@shelcia

@shelcia shelcia commented Oct 6, 2020

Copy link
Copy Markdown

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

@Zaid-maker Zaid-maker left a comment

Copy link
Copy Markdown

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

shelcia commented Jun 8, 2021

Copy link
Copy Markdown
Author

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

@Zaid-maker

Copy link
Copy Markdown

Anything about hosting that app

@shelcia

shelcia commented Jun 8, 2021

Copy link
Copy Markdown
Author

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

Zaid-maker commented Jun 9, 2021 via email

Copy link
Copy Markdown

@Zaid-maker

Zaid-maker commented Jun 9, 2021 via email

Copy link
Copy Markdown

@Zaid-maker

Zaid-maker commented Jun 9, 2021 via email

Copy link
Copy Markdown

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