3 ms·
Yeah, that works well too, it just isn't as common in component-based frameworks for the reasons pointed out in that thread.
by tshaddox 4y ago
Yeah, that works well too, it just isn't as common in component-based frameworks for the reasons pointed out in that thread.
- chrismorgan 4y agoBut I also debunked those reasons in-thread: the URL is fundamentally global state, so there’s no virtue in avoiding a global event handler—in fact, there is virtue in using a global event handler, because the alternative encourages inconsistency, with regular page-load routing accidentally not working in parts of the system (and I’ve definitely seen this happen in real life).