Skip to content
This repository has been archived by the owner on Sep 25, 2018. It is now read-only.

unnecessary checkInitialRef on child initial or substate #35

Open
mattoshry opened this issue Jul 13, 2016 · 0 comments
Open

unnecessary checkInitialRef on child initial or substate #35

mattoshry opened this issue Jul 13, 2016 · 0 comments

Comments

@mattoshry
Copy link
Collaborator

mattoshry commented Jul 13, 2016

checkInitialRef(state);

state.initialRef = initialChildren.length ? initialChildren[0] : state.states[0];
checkInitialRef(state);

When initialRef is set to the first <initial> or child <state> the reference is guaranteed to be valid given that the current state is a composite.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant