Frontend Canteen
Published in

Frontend Canteen

My Web APP Get Crushed Because I Made 2 Mistakes with LocalStorge

Recently I was developing a side project Web App that used localStorage to store some data on the client-side. But when using localStorage, I made several mistakes, which led to bugs in the App. Below I share some of my experiences and lessons.

The Story

Each user in the project has a special URL and I plan to store this field in localStorage.

The first version of the code is like this:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
bytefish

bytefish

Explain complex concepts with simple English and visual diagrams.