9 ms·
I agree that if you have state in two places you're doing it wrong. That's why I keep all my state client-side (the only thing in session storage is your user I
by twicetwice 6y ago
I agree that if you have state in two places you're doing it wrong. That's why I keep all my state client-side (the only thing in session storage is your user ID if logged in). My server is basically just a thin wrapper around my database, providing an API for my client to call.