Here is an example of state machine I intend to build
this.statemachine =
{
state: 'idle',
transitions:
{
idle:{
ebaseinit: function ()
{
console.log("Firebase Init complete");
} ,
coreinit : function ()
{
console.log("Firestore Init complete");
}
},
ready:
{
fetchdata : function ()
{
console.log("Getting data");
}
}
}
}
this.statemachine.transitions[ this.statemachine.state ]?