hotwired / stimulus

A modest JavaScript framework for the HTML you already have
https://stimulus.hotwired.dev/
MIT License
12.74k stars 427 forks source link

[name]OutletConnected is fired after outlet initialized, not connected ? #738

Open dwaynemac opened 1 year ago

dwaynemac commented 1 year ago

I have a parentController with:

connect(){
  console.log("parent connected")
}
childOutletConnected(){
  console.log("childOutlet connected")
}

and childController with:

initialize(){
  console.log("child initialized")
}
connect(){
  console.log("child connected")
}

What I'm seeing in the console is:

parent connected
child initialized
childOutlet connected
child connected