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
Is the initial pseudo state implicit? I think it would be wise to have a way to initiate the transition into the first state with an explicit call to initial!.
This initial transition could also be done as the last step in define but by having an explicit start! call the user has some control over when the initial transition is triggered.
Does this make sense?
The text was updated successfully, but these errors were encountered:
This should already work, the initial docs describes your case I think. Basically if you pass defer: true to initial, this will allow you to call the init event later on. Also by setting the event as deffered the very start state will be set to :none and thus transition :none => :first. Is that what you have in mind?
Ah, I forgot that. You’re absolutely right. But, if you don’t specify defer: true, then the initial transition doesn’t trigger callbacks. A small inconsistency?
This should already work, the initial docs describes your case I think. Basically if you pass defer: true to initial, this will allow you to call the init event later on. Also by setting the event as deffered the very start state will be set to :none and thus transition :none => :first. Is that what you have in mind?
—
Reply to this email directly or view it on GitHub.
Is the initial pseudo state implicit? I think it would be wise to have a way to initiate the transition into the first state with an explicit call to
initial!
.This would produce output:
This initial transition could also be done as the last step in
define
but by having an explicitstart!
call the user has some control over when the initial transition is triggered.Does this make sense?
The text was updated successfully, but these errors were encountered: