DEV Community 👩‍💻👨‍💻

Discussion on: Do you need a State Management Library?

 
jerevick83 profile image
jerevick83

How do you work around it's persistency? I tried using it to persist basic user data but that became messier as there was lots of persisted data in the localstorage for even signed out users. I mean lots and lots of them.

How do I persist and clear the entire storage after signing out?