paint-brush
Why localStorage Still Crashes Your Website in 2023by@chilledcowfan
1,596 reads
1,596 reads

Why localStorage Still Crashes Your Website in 2023

by Anton BurduzhaJanuary 28th, 2023
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In autumn 2022, I decided to migrate one of our work projects from the Create React App to NextJs. The goal of this was to increase the performance of a few pages, separate pages for mobile devices from the main app, and decrease the number of 3rd parties with access. Most of our goals were achieved successfully but according to our Airbrake notifier, `localStorage` was always breaking something. The solution was quite simple, to put everything related to it into `useEffect` and `onChange` handlers.
featured image - Why localStorage Still Crashes Your Website in 2023
Anton Burduzha HackerNoon profile picture
Anton Burduzha

Anton Burduzha

@chilledcowfan

L O A D I N G
. . . comments & more!

About Author

Anton Burduzha HackerNoon profile picture
Anton Burduzha@chilledcowfan

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite