3 ms·
Actually I can pin it on react directly. React was built by facebook to solve a single problem that most developers don’t have: their message count badge would
by digitaltrees 4mo ago
Actually I can pin it on react directly. React was built by facebook to solve a single problem that most developers don’t have: their message count badge would be stale and out of date, their solution was to add global state, eliminate most of the browsers built in features, move away from multi page apps with http calls etc. so all kinds of things got harder like url routing, SEO, server side state management, etc.
But most apps don’t need a persistent counter that updates without browser refresh. Further, there were other easy solutions like http request polling, or even websockets. They weren’t solutions for Facebook because they had to support lots of devices that couldn’t handle something like websockets. But instead of the industry realizing this was a specific tool for a specific niche case we just piled on to the design pattern and built a massive lock in ecosystem that may the web worse.