You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Angular's popular UI-Router, Angular v2's router, Ember's router, and the wildly popular React Router are similar in that they're all nested routers, which means that the routes are hierarchal. They're also similar in that they implement their router as a hierarchal state machine.
I believe that this algorithm has become so popular because of how tremendously useful it is. When planning the majority (all?) of my web applications these days, nested routers provide the solution to many of the toughest questions when building an application, including:
when and where should I fetch data in my app?
when and where should I compose my views to build the interface?
how can I prevent a user from navigating away (say, if some model is unsaved)?
how should links work (and be intercepted) in my application?
how and where should i add transitions in my application?
when do I encode a user's location into the URL bar and history?
Substate features, not pubsub hooks. Substate hooks allow for contextual (per route) handling, like nested 404 pages, whereas pubsub hooks are like global configuration which is less powerful and more annoying to work with
Custom sort algorithms (specificity, depth, order added)
Angular's popular UI-Router, Angular v2's router, Ember's router, and the wildly popular React Router are similar in that they're all nested routers, which means that the routes are hierarchal. They're also similar in that they implement their router as a hierarchal state machine.
I believe that this algorithm has become so popular because of how tremendously useful it is. When planning the majority (all?) of my web applications these days, nested routers provide the solution to many of the toughest questions when building an application, including:
I've done much research on routers, and have begun work on a standalone router that:
Some features:
The text was updated successfully, but these errors were encountered: