-
Notifications
You must be signed in to change notification settings - Fork 26
Home
Josh Duff edited this page Sep 29, 2017
·
12 revisions
- all state structure passed in to state router once at construction - no
addState
method, no mutability- allow cycles in state dependencies - make child states not aware of their parents
- throw errors at construction-time if a state doesn't have a parent
- no
data
property on states
- ability to lazy-load templates and activation functions
- more explicit transition hooks
- route guards that fire when the user tries to navigate away from a state, and allow the code to stop the transition from happening
- the ability to delegate to/call component methods instead of activate/guard/whatever methods passed in with the state object
- server-side rendering: add optional "serverSideRender" function to renderer API
- support "not found" pages by just adding a
*
route- turn
notFound
event into a regular error
- turn
- change the resolve function to take an arguments object instead of two ordered arguments before the callback
- state transition events should always emit the full list of states being transitioned to (maybe even all the states being transitioned from) instead of just the leaf state. Essentially https://github.com/TehShrike/abstract-state-router/pull/113 but replace the first argument with the third argument.
- require that a hash-brown-router location implementation always be passed in - don't include the hash one by default
- don't force people to instantiate the hash-brown-router, just the location
I'll add to this list as I think of stuff