TehShrike / abstract-state-router

Like ui-router, but without all the Angular. The best way to structure a single-page webapp.
http://tehshrike.github.io/state-router-example
294 stars 26 forks source link

Don't check a state's `canLeaveState` function twice if it's destroyed and created #155

Closed Mtn-View closed 12 months ago

Mtn-View commented 12 months ago

If you reload the same state, it is in both the create and destroy arrays, so you have to make sure it only gets checked once.

TehShrike commented 12 months ago

aah, makes sense