logoalt Hacker News

stavros05/03/20254 repliesview on HN

I disagree, the problem with an SPA is that now you have two places where you manage state (the backend and the frontend). That gives you much more opportunity for the two places to disagree, and now you have bugs.


Replies

procaryote05/03/2025

You had to manage state on the frontend even before spa though, if you wanted anything but the most basic experience.

show 2 replies
nine_k05/03/2025

Unless you can guarantee RTT under 100ms, you have to manage some state on client side, else your UI will feel sluggish.

show 4 replies
ivan_gammel05/03/2025

Client-server model is known for decades, state management between them isn’t hard.

ajb9205/03/2025

Who says your backend needs to manage state?

show 1 reply