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
I just ran into this while upgrading to 1.0, and it seems like really bad API design.
If I have written some code to intentionally cancel a transition, it's not an error. It's not exceptional behaviour. It's literally my application behaving as intended.
I know I can override the defaultErrorHandler to circumvent this behaviour, but this feels like a pretty ugly workaround. What if defaultErrorHandler is later enhanced with functionality I need in my app? Am I going to have to keep tracking the upstream implementation and merging the changes back into my copy?
Wouldn't it be better to at least have some way of silently cancelling a transition? Maybe by returning some token like Transition.CANCELLED?
@christopherthielen Hey, reading this back and worried I came across a bit rude. I want to say that your work on 1.0 is totally awesome! I got the whole of our codebase upgraded from 0.2 in just a couple of hours. All the new stuff and documentation is fantastic :-) 👍
If you return
false
from a hook, the defaultErrorHandler should be invoked.The text was updated successfully, but these errors were encountered: