abstract-state-router
Advanced tools
Changelog
canLeaveState
function now gets passed a second argument with the name+parameters of the state that the user is trying to navigate tostateChangePrevented
function now gets passed a name+parameters object as its first argument, instead of just the name of the current state. Also, it gets passed a second argument with the name+parameters of the state that the user attempted to visit.Changelog
Removes the concept of resetting states.
The concept of resetting breaks down if your component library doesn't support
For renderers that "reset" states by destroying the existing component and re-constructing it, stuff would break in any case where a parent and child state were both told to reset at once. Whenever the parent would reset and destroy its part of the DOM, the child would get wiped out.
Existing renderers don't need to change to work with this version of ASR, it's just that their reset
function won't get called any more.
The beforeResetState
and afterResetState
should not be fired any more.